Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122516 - javaws not handled more elegantly with AMD64 Sun 1.5 JDK/JRE.
Summary: javaws not handled more elegantly with AMD64 Sun 1.5 JDK/JRE.
Status: RESOLVED DUPLICATE of bug 147198
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-11 18:26 UTC by Sean Parsons
Modified: 2007-04-21 16:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Parsons 2006-02-11 18:26:07 UTC
If a user runs javaws and has the above Java setup, the javaws wrapper script returns the following message:
Want too run /etc/java-config-2/current-system-vm//{,jre}/bin/javaws but it does not exist or is not executable
Broken vm install

This is because for some random reason, Sun don't bundle the javaws program with the 64-bit JDK/JREs.  This has been complained about long and hard at Sun but they don't appear to want to do anything about it.

OpenJNLP might be a possible candidate to take the place of the javaws program, but the wrapper scripts will have to deal with the presence of this replacement.   Users with supported platforms might want to use OpenJNLP for whatever reason instead.

I have the 1.5 migration overlay, but I think this should apply to those without it.
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-02-16 05:25:17 UTC
This actually wouldn't occur without the migration-overlay.

The new system adds symlinks in /usr/bin to a script call run-java-tool. In short, this script figures out which tool you're calling (java, javac, javaws, etc), and then based on your settings, will call the appropriate tool from the appropriate VM.

A some more details can be found at: https://projects.gentooexperimental.org/expj/wiki/Old_system_new_system_and_why

As for javaws for sun-jre and sun-jdk 1.5, they don't seem to install javaws, which is a bug in it's own right.

As for the run-java-tool, the error message could be improved to something like... 'Tried to execute javaws from the VM located in  /etc/java-config-2/current-system-vm, but the executable did not exist'.
Comment 2 Chris Smith 2006-09-11 12:52:28 UTC
(In reply to comment #1)
> The new system adds symlinks in /usr/bin to a script call run-java-tool. In
> short, this script figures out which tool you're calling (java, javac, javaws,
> etc), and then based on your settings, will call the appropriate tool from the
> appropriate VM.

It appears that the java-run-tool can be fixed to execute /opt/java32/javaws/javaws instead of /opt/sun-jdk-1.5.<*>/bin/javaws then javaws will work.

Chris
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-09-11 12:56:40 UTC
(In reply to comment #2)
> It appears that the java-run-tool can be fixed to execute
> /opt/java32/javaws/javaws instead of /opt/sun-jdk-1.5.<*>/bin/javaws then
> javaws will work.

While that may get it working, I really doubt that is the correct fix. In this case, the 64 bit sun-jdk-1.5's javaws ends up pointing at a 32bit blackdown-jre-1.4 javaws.
Comment 4 Chris Smith 2006-09-11 13:13:34 UTC
(In reply to comment #3)
> While that may get it working, I really doubt that is the correct fix. In this
> case, the 64 bit sun-jdk-1.5's javaws ends up pointing at a 32bit
> blackdown-jre-1.4 javaws.

Yes, I see that now. But it does appear to work. One can even go into the java web start preferences, add the sun-1.5 engine and disable the blackdown-1.4 engine.

It appears similar to an issue I'm having with a 32 bit system - a missing javawsbin issue.

Chris

Comment 5 Chris Smith 2006-09-11 13:17:29 UTC
(In reply to comment #4)
> Yes, I see that now. But it does appear to work. One can even go into the java
> web start preferences, add the sun-1.5 engine and disable the blackdown-1.4
> engine.

Just to followup, by doing the above and starting an app it does run Sun's java:

10272 pts/3    Sl     0:01 /opt/sun-jdk-1.5.0.08/bin/java -Xbootclasspath/a:/opt/java32/javaws/javaws
10316 pts/3    Sl     0:01 /opt/sun-jdk-1.5.0.08/bin/java -Xbootclasspath/a:/opt/java32/javaws/javaws

Chris
Comment 6 Chris Smith 2006-09-11 13:51:11 UTC
Found these notes from Sun's java download site:
====================================================
Solaris x64 self-extracting file (use 32-bit version for applet and Java Web Start support)

Linux x64 RPM in self-extracting file (use 32-bit version for applet and Java Web Start support)

Linux x64 self-extracting file (use 32-bit version for applet and Java Web Start support)
====================================================
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-21 16:17:23 UTC
the other bug seems to have proposed solution so duping this one although it was first

*** This bug has been marked as a duplicate of bug 147198 ***