Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#2554 - Java web start doesn't work
Attached to Project:
Arch Linux
Opened by Dusty Phillips (Dusty) - Tuesday, 12 April 2005, 17:19 GMT
Last edited by Judd Vinet (judd) - Friday, 15 April 2005, 00:44 GMT
Opened by Dusty Phillips (Dusty) - Tuesday, 12 April 2005, 17:19 GMT
Last edited by Judd Vinet (judd) - Friday, 15 April 2005, 00:44 GMT
|
DetailsThis issue has been discussed here:
http://bbs.archlinux.org/viewtopic.php?t=11205 Basically, the Java webstart system that comes with the JRE is not working correctly, yet it is not showing any errors or log messages. It runs and does nothing, showing no output, but does not close. People who install local versions of the JRE seem to find that JWS works. Installing webstart manually also seems to solve the problem. |
This task depends upon
Closed by Jason Chu (jason)
Thursday, 21 April 2005, 03:34 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with version 1.5.0_02-1
Thursday, 21 April 2005, 03:34 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with version 1.5.0_02-1
j2resdk.tar.gz
If someone wants to work out the technical problems, I'll change it.
Also, removing them is more difficult than adding them.
I'll take a look at the PKGBUILD when I have time, but its possible that won't be for two weeks.
I don't remember the modifications exactly.
The install script simply adds the following line to /etc/mailcap:
application/x-java-jnlp-file;/opt/java/jre/bin/javaws %s
and this line to /etc/mime.types:
application/x-java-jnlp-file jnlp
I can't find anything else that it does differently from the PKGBUILD, but something MUST be missing.
I've searched the net, and found that some people recommend setting a JAVAWS_HOME variable. I tried setting this to /opt/java/jre/javaws and /opt/java/jre/lib/javaws; neither solution worked.
Finally, I found that if you add:
/opt/java/jre/lib/javaws.jar:/opt/java/jre/lib/deploy.jar
to your classpath and then run:
java com.sun.javaws.Main http://path/to/jnlp/file
javaws works. The two links in my forum post, however, do not work, as they appear to be set up for jre 1.4.
So, basically, I can't figure out why the javaws binary isn't working. There is a workaround here; we could make javaws a script that runs the above java command, for example.
I'm also cautious about another possible problem. I would have thought that any jars in /opt/java/jre/lib should automatically be available on the CLASSPATH. However, I have to add them manually to get them to work. I had this same issue with tools.jar a few days ago. Is this typical behavior, or a problem with the Arch j2re install? Its possible this problem is affecting the javaws issue.
Would there be any way to run the java installer and remove unwanted files instead of trying to mimic the wanted portions in the PKGBUILD? That might solve a lot of these problems.
Dusty
I swear there are changes in the executing user's home directory along with it.
I found no easy way to get the install script to not do the crappy stuff I didn't like, that's why I wrote the PKGBUILD that way.
You like to add unnecessary dependances on the making of the package ?
And it is simplier to make a package with the bin ...
go grab that PKGBUILD that work for javaws: (my FAI's ftp is down so look at the file below)
and there is no need to change anything in the user Home to make javaws work ...
Maybe you would not have any trouble if you have used the .bin file directly instead of freaking with that rpm.bin ...
================================
pkgname=j2re
pkgver=1.5.0_02
pkgrel=1
pkgdesc="Sun's java runtime environment"
url="http://java.sun.com"
depends=( 'gcc' 'glibc')
source=(http://public.planetmirror.com/pub/java-sun/J2SE/5.0_01/linux/jre-1_5_0_02-linux-i586.bin j2re.profile)
md5sums=('1c9b3bb9670df5ebb5587d2bcba73b3c' 'db15944259ad567f7857a4b62255ba72')
build() {
mkdir -p $startdir/pkg/opt/java
cd $startdir/pkg/opt/java
echo "yes" | sh $startdir/src/jre-1_5_0_02-linux-i586.bin
install -D -m 755 $startdir/src/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
mv jre${pkgver} jre
rm -r jre/man/ja*
find -name "man/man1/*.1" -exec gzip -9 {} \;
for i in jre/*; do
if [ -f $i ]; then rm -f $i; fi
done
mkdir -m 755 $startdir/pkg/opt/java/jre/.systemPrefs
touch $startdir/pkg/opt/java/jre/.systemPrefs/.system.lock
chmod 644 $startdir/pkg/opt/java/jre/.systemPrefs/.system.lock
touch $startdir/pkg/opt/java/jre/.systemPrefs/.systemRootModFile
chmod 644 $startdir/pkg/opt/java/jre/.systemPrefs/.systemRootModFile
mkdir -p $startdir/pkg/opt/mozilla-plugins
ln -s /opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so $startdir/pkg/opt/mozilla-plugins
}
=================================
export J2REDIR=/opt/java/jre
export PATH=$PATH:$J2REDIR/bin
export MANPATH=$MANPATH:$J2REDIR/man
# that variable is not necessary
#export CLASSPATH=$CLASSPATH:$J2REDIR/lib
if [ ! -f /etc/profile.d/j2sdk.sh ]; then
export JAVA_HOME=/opt/java/jre
fi
Have you ever tried installing your package on someone else's machine to see if javaws works there? Or have you just been testing on the machine you built on?
I don't really appreciate the implication that I didn't have due diligence.
i build my package as a user but with fakeroot i use USE_FAKEROOT="y" in makepkg.conf and got no pb to run the script ... and no files are modified in the / filesystem
i can't test it in somebody else machine sorry ..
makedepends=('fakeroot')
to work
I apologize Jason. i wouldn't have said that, that way
However, I am reasonably sure that I know how to fix the script so that it doesn't do this. I'll experiment it this afternoon and tomorrow and get back to you. I can incorporate my changes when I take over these packages next month.
well either with my PGBUILD or either yours (dusty), i can launch one time an app with javaws but the second time i got a segmentation fault. don't know if it is the app (cgoban2 from kgs not the package that is outdated) or javaws that has a pb. anybody has that too ?
Dusty
Dusty