Java web start does not work

Bug #182971 reported by Ketil on 2008-01-14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)

Bug Description

Binary package hint: sun-java6-bin

I have installed sun-java6-bin, and with it comes /usr/lib/jvm/java-6-sun- Despite this, the demos on 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.

Ketil (ketil-froyn) wrote :

PS, I'm running ubuntu 7.10, and the browser is firefox

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 but it bug since

James Stansell (jamesstansell) wrote :

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


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
 at net.sourceforge.jnlp.runtime.JNLPRuntime.loadWindowIcon(
 at net.sourceforge.jnlp.runtime.JNLPRuntime.getDefaultBaseDir(
 at net.sourceforge.jnlp.runtime.Boot.getBaseDir(
 at Method)
 at net.sourceforge.jnlp.runtime.Boot.main(
 at net.sourceforge.jnlp.runtime.JNLPRuntime.loadWindowIcon(
 at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(
 at Method)
 at net.sourceforge.jnlp.runtime.Boot.main(
JNLP file location: /home/fred/LOGICIELS/spark-angels/sparkangels.jnlp
net.sourceforge.jnlp.ParseException: Spec version not supported (supports 1.0)
 at net.sourceforge.jnlp.Parser.<init>(
 at net.sourceforge.jnlp.JNLPFile.parse(
 at net.sourceforge.jnlp.JNLPFile.<init>(
 at net.sourceforge.jnlp.JNLPFile.<init>(
 at net.sourceforge.jnlp.runtime.Boot.getFile(
 at Method)
 at net.sourceforge.jnlp.runtime.Boot.main(
netx: Spec version not supported (supports 1.0)

2F (lhuile) wrote :

Me again, i try the 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...

James Stansell (jamesstansell) wrote :

2F, It looks like your javaws command is the one from the 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- work for you?


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- work for me but it's the version...
so it works if i do like this : "/usr/lib/jvm/java-6-sun- my-file.jnlp"
and in my "/usr/lib/jvm", i have this folders : java-1.5.0-gcj-4.2- // java-6-openjdk // java-6-sun // java-6-sun- // 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).

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- my-file.jnlp" still works... not easy (excuse again my english).

2F (lhuile) on 2008-04-07
Changed in sun-java6:
assignee: nobody → lhuile
status: New → In Progress
assignee: lhuile → nobody

Me again, just to say that of course from the firts post, didn't works again.

kenshin (kenshin767) wrote :

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

When i attempt to load a file with this command:


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.



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- instead of just javaws.

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-
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.


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)

tags: added: java jnlp start web

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:
* 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  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments