Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 35024

Summary: JRE/JDK ebuilds should add jnlp (Java Web Start) file type bindings
Product: Gentoo Linux Reporter: Keith Lea <keith>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: enhancement CC: aether
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Keith Lea 2003-12-03 18:23:09 UTC
java-config should create a file association for JNLP files, Java Web Start
Launchers. (javaws is used to start JNLP files.)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Keith Lea 2003-12-27 22:24:30 UTC
This is still necessary for 1.4 and earlier, but according to http://developer.java.sun.com/developer/bugParade/bugs/4811103.html, Java 1.5 (internal build 32 and later) does this automatically.
Comment 2 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-05 01:48:43 UTC
Could you give me a couple links regarding background for this and why it should b e integrated into java-config?
Comment 3 Keith Lea 2004-01-05 09:51:26 UTC
I'm not sure what you mean by background, but java-config should do this because the file association needs to be changed based on the current JDK/JRE. With a file association set for JNLP files, Linux users can click on Java Web Start links and have the application start up immediately. Without the binding, users have to copy and paste the URL into the command line and type "javaws <url>".
Comment 4 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-08 20:38:32 UTC
Okay, I'll have to look into this later, I need to do some research on how/where to create the bindings before I can decide wether or not it's feasible for java-config to do this.
Comment 5 Jens Hilligsøe 2004-03-08 16:10:54 UTC
I must say, that I would find it more interesting, that java-config would add the path to javaws (ie /opt/sun-jdk-1.4.2.03/jre/javaws) to ENV when a JDK/JRE is chosen.
Comment 6 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-26 23:07:28 UTC
Jen, this already happens :P

The issue is I guess in having java-config deal with webstart. Or have a javaws-config.
Comment 7 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-26 23:20:42 UTC
I think a better solution for this is just to add the webstart crap to the sun ebuilds under gnome/kde flags. Maybe I'm wrong :o
Comment 8 Keith Lea 2004-03-27 09:41:15 UTC
It could be done in the ebuilds, and the file association could execute whichever javaws was in the PATH.
Comment 9 Jason A. Mobarak (RETIRED) gentoo-dev 2004-04-12 23:20:17 UTC
I like the solution of having ebuilds do it, I think java-config already does too much.
Comment 10 Dizzy 2004-09-01 00:55:46 UTC
Ok so anything happening here (beeing 8 months since this bug entry was open) ? I have some office gentoo users which were very happy about Gentoo and Linux until they found out JNLP links does not work from the browser. Any sugestions ?
Comment 11 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-02-04 18:27:49 UTC
This should be handled by the ebuilds rather than java-config (similar to how all the media applications add the proper association through the ebuilds).  java-config would handle the association to the proper javaws (if there are multiple j{dk,re}s installed).
Comment 12 David Grant 2005-04-18 10:18:23 UTC
As in comment #10, I can't get java web start working in my browser (firefox). It seems that my friend's computer, running SUSE does work. I'm not sure if he's using an RPM or just the stuff provided by SUN directly, but it would be really great if Java web start worked out of the box in gentoo.
Comment 13 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-07-05 20:34:56 UTC
The Java WebStart problem is far more extensive than just file mimetypes.  We
are working on resolving this issue.  (There is an open bug for that specific
issue...please check it out and comment if it does not work).
Comment 14 Josh Nichols (RETIRED) gentoo-dev 2006-01-18 16:28:20 UTC
Associating JNLP with javaws will be much easier once we migrate to the new java-config and eclasses.

The new java-config installs wrapper scripts to /usr/bin/{java,javac,javaws,etc...}, and these scripts know where to find the appropriate tool based on the current VM.
Comment 15 Josh Nichols (RETIRED) gentoo-dev 2006-02-16 10:01:56 UTC
Once we've migrated to the new system, I think we need to add the following to /etc/mailcap:

application/x-java-jnlp-file; /usr/bin/javaws %s; test=test -n "$DISPLAY"

And the following to /etc/mime.types:
application/x-java-jnlp-file          jnlp
Comment 16 Mike McQuaid 2007-03-19 12:19:33 UTC
A little bump to see if this is still being planned.
Comment 17 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-21 17:27:36 UTC
Yes, we will probably do it via .desktop file installed by java-config that will call the javaws wrapper.
Comment 18 Mike McQuaid 2008-02-10 21:32:30 UTC
Bump to see if this can be resolved.
Comment 19 Petteri Räty (RETIRED) gentoo-dev 2008-02-11 22:16:55 UTC
(In reply to comment #18)
> Bump to see if this can be resolved.
> 

Support is now in java-config trunk. To test you can use:
https://overlays.gentoo.org/svn/proj/java/java-experimental/dev-java/java-config
Comment 20 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-02-12 09:34:23 UTC
Supposed? :)

$ grep TryExec projects/java-config-2/trunk/data/javaws.desktop
TryExec=gimp-2.4
Comment 21 Petteri Räty (RETIRED) gentoo-dev 2008-02-26 18:13:48 UTC
java-config-2.1.5 has the file associations