Java web start does not work

Bug #182971 reported by Ketil
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
In Progress
Undecided
Unassigned

Bug Description

Binary package hint: sun-java6-bin

I have installed sun-java6-bin, and with it comes /usr/lib/jvm/java-6-sun-1.6.0.03/jre/bin/javaws. Despite this, the demos on http://java.sun.com/products/javawebstart/demos.html did not work. First the javascript there decided I didn't have java web start installed, but when I told it to use the non-javascript version, I had to manually select javaws as the program to handle .jnlp files.

Tags: java jnlp start web
Revision history for this message
Ketil (ketil-froyn) wrote :

PS, I'm running ubuntu 7.10, and the browser is firefox 2.0.0.6+2nobinonly-0ubuntu1_i386.

Revision history for this message
2F (lhuile) wrote :

I have a similar problem (excuse my english)
i can't run "javaws /my-file.jnlp", bash sent an error : "netx: Spec version not supported (supports 1.0)"
but when i go to the gui menu sun java 6 Plugin control panel, i can launch the application in "temporary internet files" -> "display" and launch.

otherwise another program (Jalbum) crash when i ask for building the album.

Ubuntu 8.0.4, kernel 2.6.24.15 but it bug since 2.6.22.12

Revision history for this message
James Stansell (jamesstansell) wrote :

2F, for "javaws -version" what output do you get? I didn't think netx was part of sun-java6.

-james.

Revision history for this message
2F (lhuile) wrote :

James, with "javaws -version" i get the help of javaws, whatelse.

But, i try my command with verbose mode :

******************************************************************************
fred@fred:~$ javaws -verbose /home/fred/LOGICIELS/spark-angels/sparkangels.jnlp
java.lang.NullPointerException
 at net.sourceforge.jnlp.runtime.JNLPRuntime.loadWindowIcon(JNLPRuntime.java:459)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.getDefaultBaseDir(JNLPRuntime.java:256)
 at net.sourceforge.jnlp.runtime.Boot.getBaseDir(Boot.java:407)
 at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:168)
 at java.security.AccessController.doPrivileged(Native Method)
 at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:159)
java.lang.NullPointerException
 at net.sourceforge.jnlp.runtime.JNLPRuntime.loadWindowIcon(JNLPRuntime.java:459)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:123)
 at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:170)
 at java.security.AccessController.doPrivileged(Native Method)
 at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:159)
JNLP file location: /home/fred/LOGICIELS/spark-angels/sparkangels.jnlp
Status: CONNECTED DOWNLOADED STARTED +(CONNECTED DOWNLOADED STARTED) @ /home/fred/LOGICIELS/spark-angels/sparkangels.jnlp
net.sourceforge.jnlp.ParseException: Spec version not supported (supports 1.0)
 at net.sourceforge.jnlp.Parser.<init>(Parser.java:139)
 at net.sourceforge.jnlp.JNLPFile.parse(JNLPFile.java:488)
 at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:149)
 at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:134)
 at net.sourceforge.jnlp.runtime.Boot.getFile(Boot.java:243)
 at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:173)
 at java.security.AccessController.doPrivileged(Native Method)
 at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:159)
netx: Spec version not supported (supports 1.0)
******************************************************************
Thx

Revision history for this message
2F (lhuile) wrote :

Me again, i try the http://java.sun.com/products/javawebstart/demos.html and the non-java page, but nothing works too :

FF3 beta4 : open with sun java 6 web start --> yes, of course, then he open me the sun java 6 plugin control panel... cf screenshot and you can see my application spark angel (my first post) that i can launch safely from here. But every file.jnlp launched open me the plugin control panel...

Revision history for this message
James Stansell (jamesstansell) wrote :

2F, It looks like your javaws command is the one from the jnlp.sourceforge.net project. My best guess is that it was installed with the openjdk-6-jre package. I was hoping that the banner from -version would verify that.

Using the sun-java6 (on gutsy) 'javaws -version' shows

Java(TM) Web Start 1.6.0_03

Does /usr/lib/jvm/java-6-sun-1.6.0.04/jre/bin/javaws work for you?

-james.

Revision history for this message
2F (lhuile) wrote :

I found, but i dont know how to resolve it. At least i cant reproduce this bug, because i only update with update manager and never install or desinstall any java stuff.
You're right, the /usr/lib/jvm/java-6-sun-1.6.0.05/jre/bin/javaws work for me but it's the 1.6.0.05 version...
so it works if i do like this : "/usr/lib/jvm/java-6-sun-1.6.0.05/jre/bin/javaws my-file.jnlp"
and in my "/usr/lib/jvm", i have this folders : java-1.5.0-gcj-4.2-1.5.0.0 // java-6-openjdk // java-6-sun // java-6-sun-1.6.0.05 // java-gcj
So, is it a known bug , is it my newbie on unix, or is it normal ? Can i delete the openjdk package?
I think i can solve it by change the javaws link to the right one (sun).
Thanks

Revision history for this message
2F (lhuile) wrote :

I delete java-6-openjdk with dependencies (icetea), now javaws doesnt exist in shell (i have java and java_vm)
but "/usr/lib/jvm/java-6-sun-1.6.0.05/jre/bin/javaws my-file.jnlp" still works... not easy (excuse again my english).
Thanks.

2F (lhuile)
Changed in sun-java6:
assignee: nobody → lhuile
status: New → In Progress
assignee: lhuile → nobody
Revision history for this message
2F (lhuile) wrote : jdk and sun are not friends

Me again, just to say that of course from the firts post, http://java.sun.com/products/javawebstart/demos.html didn't works again.

Revision history for this message
kenshin (kenshin767) wrote :

I receive something similair to the problem. I get the following:

When i attempt to load a file with this command:

javaws http://files.gokgs.com/javaBin/cgoban-nfa.jnlp

I receive this error:

netx: Lanuch Error: Could not launch JNLP file. (java.lang.NullPointerException null)

Please someone attempt to fix this problem. I need to create shortcuts to my Java web start apps, and I can't with this problem.

Thanks,

kenshin

Revision history for this message
kenshin (kenshin767) wrote :

I just figured out what was wrong for me, dont know if it has any relevence. I had to run /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/javaws http://files.gokgs.com/javaBin/cgoban-nfa.jnlp instead of just javaws.

Revision history for this message
2F (lhuile) wrote :

Same probleme, it's broken link, check your /usr/bin/javaws link to see if he's broken.
Solve it by :

sudo update-java-alternatives --set sun-6-java

means that update the /etc/alternatives/"java & co" (which are links too)
where sun-6-java is a link to the last version (java-6-sun-1.6.0.06).
I dont know why this problem is not solve i found myself the broken link and the command on the web.
Java isn't open source i think, it comes because of that.

2F

Revision history for this message
Daniël van Eeden (dveeden) wrote :

This opensource project is a good testcase for webstart (it's not just a small demo, but a real application with 3D, extra libs etc)
http://www.sweethome3d.eu/SweetHome3D.jnlp

tags: added: java jnlp start web
Revision history for this message
Barnsta (Barnendu Goswami) (barnendu-goswami) wrote :

I was having problems running java iDRAC (remote access for Dell Servers) modules. I solved my jnlp file issue by:
* renamed the ".java" settings folder in my "/home/username" profile (equivalent of deleting)
* uninstalling all installed java components (I had lots of alternative stuff installed) to remove confusion
* installed the version of java that I believed would be right for the job (v6.x)
* then located the "javaws" binary with "locate javaws" in a konsole - mine was here:
    /usr/lib/jvm/java-6-sun-1.6.0.14/bin/javaws
* started Firefox. went to Edit > Preferences
    went to "Applications" tab/section
    scrolled to "Java Web Start" content type
    in the "action" column; choose "use other"
    locate the "javaws" file you found earlier
    [close] the preferences
* Bob is now your uncle too (well he was for me) :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.