Installing Oracle javaws Alongside OpenJRE / OpenJDK

I was recently tasked with configuring a Dell Equallogic SAN (PS6100) for the datacenter I manage. This is a device that utilizes a java web application for management. Unfortunately it’s one that refuses to function under the OpenJRE / IcedTea webstart. Being a linux purist, it would be sacrilege for me to manage this piece inside a virtual running windows so I had to figure out how to run the JNLP without having to enable java in Firefox, or run the Oracle JRE / JDK as my default interpreter / compiler on Ubuntu.

I started out testing this in a virtual so as not to sully my bare-metal install with unnecessary cruft.

First I’ll install the default OpenJRE / OpenJDK (for a fresh Ubuntu install).

sudo apt-get install default-jre
sudo apt-get install default-jdk

Now add the Oracle ppa and install the current closed-source Java packages.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Finally, configure java and javac to use the OpenJ* tools.

sudo update-alternatives –config java
sudo update-alternatives –config javac

You may also want to go to about:addons in Firefox and disable the Oracle Java Plug-In. I haven’t had a need for any browser plug-in yet so it may or may not be possible to use the icedtea-plugin alongside this. If I ever cross that bridge I’ll write an update. I’ve also found that you can show all the defaults that were installed with:

update-alternatives –get-selections

This keeps my open source development projects from coming in contact with the evil Oracle Java compiler and runtime.

Now get the JNLP from the SAN and launch it.

wget http://[san_ip_address]/groupmgr.jnlp
javaws groupmgr.jnlp
This entry was posted in Ubuntu Desktop. Bookmark the permalink.

Comments are closed.