From Robin's Wiki

EMusicJ: InstallingJava

This is pretty out of date now, but also the newer Linux versions are less likely to have issues.

These are the instructions for installing Java under the various distributions. If your one isn't listed here, and you work out how to do it, please hit the Edit Page link above and add it.

This page covers installing Sun's version of Java, which is the 'official' one. eMusic/J should also work with other Java versions, such as GCJ. Often these are installed by default on recent Linux distributions.

If your distribution isn't listed below, you can manually download Jav from the Sun download page.

If this doesn't seem to help, have a look at the troubleshooting page.

Debian and Ubuntu

Since Ubuntu release 6.06, a.k.a Dapper Drake, Sun's JRE is now available within the distribution. Here are instructions for installing the JRE on Dapper.

The simple command line way is to do the following (you will need the mutliverse source enabled, see the Ubuntu help for this):

 sudo apt-get install sun-java5-jre sun-java5-fonts
 sudo update-alternatives --set java /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

If you have an older version of Ubuntu, you should use the instructions below:

If you get an error when you run eMusic/J from the command line:
It probably means you have another version of Java installed, for example GCJ or Blackdown. This means that the Sun Java may not be used. To fix this, install and run galternatives. This will let you select which JDK is the default one. The command line equivalent to galternatives is to do:
sudo update-alternatives --set java /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

Back to the Installation page

Retrieved from http://www.kallisti.net.nz/EMusicJ/InstallingJava
Page last modified on March 14, 2011, at 09:22 AM