So after a good long time not being able to play this Facebook game we’re building for P2P-related research, which runs on Java Web Start, I finally got pissed today and sat down and finally got to the bottom of it.
Because Java isn’t free technology and all that, OpenSUSE actually comes preinstalled with OpenJDK instead of the common version of Java distributed by Sun. With this default configuration, Web Start (JNLP) files on the internet will open by default in an open implementation of Java Web Start called ‘IcedTea Web Start’, which I hear works reasonably well – but outright doesn’t work for some cases, like mine.
For people who, like me, need to run Sun’s version of Web Start from Firefox – first, you need to grab and install Sun’s version of the Java runtime using your software package manager (in OpenSUSE the package is called java-1_6_0-sun
). Verify that you have a program called ‘javaws’ after this step. You can simply type ‘javaws’ into an open terminal and make sure it is recognized as Java(TM) Web Start.
Okay, next all we need to do is get Firefox to use javaws when opening JNLP files. For other distros you’d go to Edit > Preferences > Applications in Firefox, look for JNLP, and change the setting so it uses javaws. On OpenSUSE, Firefox is integrated so it takes its file-association settings directly from KDE. So you’ll have to instead go to KDE’s systemsettings (Configure Desktop) > Advanced Tab > File Associations. Here, run a search for JNLP, then add ‘/usr/bin/javaws’ to the top of the Application Preference Order.
We’re done! Next time you open a JNLP Web Start file in Firefox, it should offer to use Sun’s Java Web Start to open it :)
liberty
He, he! Nice touch with Hinagiku-san
Jason "moofang"
:) <3 Hinagiku
Sudhir D
After I upgraded to firefox 10 jnlp had stopped working. I wasn’t sure why.
This helped. Thanks much.
Cheers,
Sudhir
me
thanks – after you change the file association you have to reboot.
Caeyude
Thanks. To replace OpenJDK with Oracle’s Java:
http://community.linuxmint.com/tutorial/view/1091
http://linuxg.net/how-to-install-oracle-java-jdk-678-on-ubuntu-13-04-12-10-12-04/
http://install-things.com/2013/05/07/how-to-install-oracle-java-6-update-45-on-ubuntu-12-10-linux/