From ron@justok.thuisnetwerk.nl  Tue May 17 20:28:57 2005
Return-Path: <ron@justok.thuisnetwerk.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D3C7616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 May 2005 20:28:57 +0000 (GMT)
Received: from justok.thuisnetwerk.nl (zonnebloem.demon.nl [82.161.104.46])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CB03D43D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 May 2005 20:28:56 +0000 (GMT)
	(envelope-from ron@justok.thuisnetwerk.nl)
Received: from justok.thuisnetwerk.nl (localhost [127.0.0.1])
	by justok.thuisnetwerk.nl (8.13.3/8.13.3) with ESMTP id j4HKROvK000997
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 May 2005 22:28:54 +0200 (CEST)
	(envelope-from ron@justok.thuisnetwerk.nl)
Received: (from ron@localhost)
	by justok.thuisnetwerk.nl (8.13.3/8.13.3/Submit) id j4HCFrHP059398;
	Tue, 17 May 2005 14:15:53 +0200 (CEST)
	(envelope-from ron)
Message-Id: <200505171215.j4HCFrHP059398@justok.thuisnetwerk.nl>
Date: Tue, 17 May 2005 14:15:53 +0200 (CEST)
From: Ron de Bruijn <rondebruijn@yahoo.com>
Reply-To: Ron de Bruijn <rondebruijn@yahoo.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Java Webstart does not work
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81176
>Category:       java
>Synopsis:       Java Webstart does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 17 20:30:06 GMT 2005
>Closed-Date:    Thu Oct 13 15:09:55 GMT 2005
>Last-Modified:  Thu Oct 13 15:09:55 GMT 2005
>Originator:     Ron
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
None
>Environment:
System: FreeBSD justok.thuisnetwerk.nl 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat May 14 16:24:15 CEST 2005 ron@justok.thuisnetwerk.nl:/usr/obj/usr/src/sys/MYKERNEL i386

ron@justok$ java -version
java version "1.4.2-p7"
Java(TM) 2 Runtime Environment, Standard Edition (build 
1.4.2-p7-ron_16_may_2005_21_05)
Java HotSpot(TM) Client VM (build 1.4.2-p7-ron_16_may_2005_21_05, mixed 
mode)

>Description:
Java Webstart is a system to let you run applications by clicking on 
them, they are automatically downloaded and executed. The problem is 
that in the above configuration is does not work. 
	
>How-To-Repeat:
Execute	/usr/local/linux-sun-jdk1.4.2/jre/javaws/javaws

>Fix:

Partial fix:

#!/bin/sh
   JAVA_HOME=/usr/local/jdk1.4.2
   JAVAWS_HOME=$JAVA_HOME/jre/javaws
   java -cp $JAVAWS_HOME/javaws.jar:$JAVAWS_HOME/javaws-l10n.jar \
      -Djnlpx.jvm=$JAVA_HOME/jre/bin/java -Djnlpx.home=$JAVAWS_HOME \
      -Djnlpx.deployment.system.home=$JAVAWS_HOME \
      -Djnlpx.deployment.user.home=/home/ron/.javaws \
      -Djnlpx.home=$JAVAWS_HOME \
      -Djava.security.policy=$JAVAWS_HOME/javaws.policy \
      com.sun.javaws.Main "$@"

But it still doesn't let you run javaws applications, because "the 
operating system is not supported"

Regards, Ron de Bruijn
>Release-Note:
>Audit-Trail:

From: Panagiotis Astithas <past@ebs.gr>
To: Ron de Bruijn <rondebruijn@yahoo.com>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: java/81176: Java Webstart does not work
Date: Wed, 18 May 2005 10:44:18 +0300

 Ron de Bruijn wrote:
 >>Number:         81176
 >>Category:       java
 >>Synopsis:       Java Webstart does not work
 >>Confidential:   no
 >>Severity:       critical
 >>Priority:       high
 >>Responsible:    freebsd-java
 >>State:          open
 >>Quarter:        
 >>Keywords:       
 >>Date-Required:
 >>Class:          sw-bug
 >>Submitter-Id:   current-users
 >>Arrival-Date:   Tue May 17 20:30:06 GMT 2005
 >>Closed-Date:
 >>Last-Modified:
 >>Originator:     Ron
 >>Release:        FreeBSD 5.4-STABLE i386
 >>Organization:
 > 
 > None
 > 
 >>Environment:
 > 
 > System: FreeBSD justok.thuisnetwerk.nl 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat May 14 16:24:15 CEST 2005 ron@justok.thuisnetwerk.nl:/usr/obj/usr/src/sys/MYKERNEL i386
 > 
 > ron@justok$ java -version
 > java version "1.4.2-p7"
 > Java(TM) 2 Runtime Environment, Standard Edition (build 
 > 1.4.2-p7-ron_16_may_2005_21_05)
 > Java HotSpot(TM) Client VM (build 1.4.2-p7-ron_16_may_2005_21_05, mixed 
 > mode)
 > 
 > 
 >>Description:
 > 
 > Java Webstart is a system to let you run applications by clicking on 
 > them, they are automatically downloaded and executed. The problem is 
 > that in the above configuration is does not work. 
 > 	
 > 
 >>How-To-Repeat:
 > 
 > Execute	/usr/local/linux-sun-jdk1.4.2/jre/javaws/javaws
 
 You are executing the linux javaws here. Perhaps you meant to try the 
 native one instead?
 
 >>Fix:
 > 
 > 
 > Partial fix:
 > 
 > #!/bin/sh
 >    JAVA_HOME=/usr/local/jdk1.4.2
 >    JAVAWS_HOME=$JAVA_HOME/jre/javaws
 >    java -cp $JAVAWS_HOME/javaws.jar:$JAVAWS_HOME/javaws-l10n.jar \
 >       -Djnlpx.jvm=$JAVA_HOME/jre/bin/java -Djnlpx.home=$JAVAWS_HOME \
 >       -Djnlpx.deployment.system.home=$JAVAWS_HOME \
 >       -Djnlpx.deployment.user.home=/home/ron/.javaws \
 >       -Djnlpx.home=$JAVAWS_HOME \
 >       -Djava.security.policy=$JAVAWS_HOME/javaws.policy \
 >       com.sun.javaws.Main "$@"
 > 
 > But it still doesn't let you run javaws applications, because "the 
 > operating system is not supported"
 > 
 > Regards, Ron de Bruijn
 > 
 >>Release-Note:
 >>Audit-Trail:
 >>Unformatted:
 > 
 

From: "Thomas M. Hermann" <__tmh@yahoo.com>
To: bug-followup@FreeBSD.org,  rondebruijn@yahoo.com
Cc:  
Subject: Re: java/81176: Java Webstart does not work
Date: Tue, 05 Jul 2005 09:29:33 -0500

 The script that executes javaws requires a simple patch to execute 
 correctly:
 
 --- /usr/local/jdk1.4.2/jre/javaws/javaws.orig    Sat Feb  5 12:15:25 2005
 +++ /usr/local/jdk1.4.2/jre/javaws/javaws    Sat Feb  5 12:26:37 2005
 @@ -13,8 +13,8 @@
  
  while [ -L "$PRG" ]; do
      ls=`/bin/ls -ld "$PRG"`
 -    link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
 -    if /usr/bin/expr "$link" : '/' > /dev/null; then
 +    link=`/bin/expr "$ls" : '.*-> \(.*\)$'`
 +    if /bin/expr "$link" : '\/' > /dev/null; then
         prg="$link"
      else
         prg="`/usr/bin/dirname $PRG`/$link"
 
 
 Apply this patch to the native javaws script(see path) and it will work. 
 Please email me with any questions.
 
 Best regards,
 
 Tom H.
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Thu Oct 13 15:07:54 GMT 2005 
State-Changed-Why:  
I've committted Thomas' fix. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81176 
>Unformatted:
