Running Java Web Start apps on Ubuntu Linux for AMD 64
I love Java Web Start. I think it does a very good job of solving many of the Java distribution issues. It supports automatic updating of apps at the jar level, including dependencies. It really makes life easy for the end user, and really is pretty easy to implement for the developer.
But, if you are running Ubuntu Linux for AMD64 like I am, it won't work out of the box with the 64 bit JVM. For whatever reason, Sun hasn't ported it. Not that I'm complaining. Now that Sun freed Java, we all have no one to blame but ourselves.
First, let me say, there are more issues for Beryl/Compiz users. The information below won't help you. I'll cover running Swing and Java Web Start on Beryl in a separate post later this week.
The solution is to install the 32 bit Java 1.5. I realize Java 1.6 is available, but it won't work for some reason (I couldn't really tell why, the app just never comes up, but shows no errors). The installation is pretty simple. Just run:
sudo apt-get install ia32-sun-java5-bin
Then, you can launch Java web start apps using:
/usr/lib/jvm/ia32-java-1.5.0-sun/bin/javaws http://argouml-downloads.tigris.org/jws/argouml-0.24.jnlp
That example uses ArgoUML .24 but you can easily adjust.
Wrapper Script
You may not want to have to remember all that every time. I have an easy fix. Create a wrapper script:
sudo gedit /usr/local/bin/javaws
In the script place:
#! /bin/sh
/usr/lib/jvm/ia32-java-1.5.0-sun/bin/javaws $1
Or, you can just download mine. Just make sure to set it as executable:
sudo chmod +x /usr/local/bin/javaws
Firefox Integration
In Firefox, when you click on a Java Web Start link, it will prompt you. You can tell it to open with /usr/lib/jvm/ia32-java-1.5.0-sun/bin/javaws or simply "javaws" if you created the wrapper script. You can also check the "Do this automatically..." checkbox. From that point on, .jnlp links will just work.
Weblog
Fri, 03/23/2007 - 12:30am
Fri, 03/23/2007 - 11:17pm
You'll have to provide more information. What's happening when you try to launch it? If you see nothing, try this: Right click on the link and chose "Copy Link Location". Then, from the command line paste the link after javaws, like so "javaws http://www.example.com/link/link.jnlp". Tell me if you get errors.
Wed, 07/25/2007 - 4:52pm
Fri, 08/10/2007 - 1:16pm
Thu, 10/11/2007 - 7:43pm
Fri, 02/15/2008 - 10:17pm
Sun, 03/30/2008 - 3:00am
Mon, 04/14/2008 - 9:47am
Mon, 04/21/2008 - 11:00am
user@localhost:~$ /usr/lib/jvm/ia32-java-1.5.0-sun/bin/javaws http://www.randelshofer.ch/quaqua/jws/quaqua-test.jnlp Java Web Start splash screen process exiting ..... Splash: sysCreateListenerSocket failed: No such file or directoryWed, 05/21/2008 - 9:32am
Fri, 05/30/2008 - 6:16am
Sun, 06/01/2008 - 4:51pm
/usr/lib/jvm/ia32-java-1.5.0-sun/jre/bin/javawsObrys
Mon, 06/02/2008 - 5:09am
Fri, 06/20/2008 - 10:30am
Tue, 06/03/2008 - 12:41am
Thu, 10/02/2008 - 7:35pm
Wed, 10/08/2008 - 3:13am
Wed, 10/08/2008 - 3:45am
Wed, 10/08/2008 - 3:46am
Tue, 10/21/2008 - 10:32am
Mon, 12/15/2008 - 2:34am
Fri, 10/31/2008 - 9:14am
Fri, 11/21/2008 - 4:57pm
Tue, 12/30/2008 - 4:53pm
Tue, 06/09/2009 - 3:13am
Box: Athlon 64 running Ubuntu 64bits Hardy 8.04
Wed, 10/28/2009 - 2:33pm
Fri, 11/27/2009 - 5:01am