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:
- From the Sun site, download "Linux self-extracting file"
- Install the package "java-package" which comes with your distribution. This can either be done through a program such as Synaptic (in Ubuntu, System -> Administration -> Synaptic Package Manager), or type the following on the command line:
sudo aptitude install java-package
(if this asks for a password, enter the one you use to log in to the computer.) - Now, from the command line, go to the directory that you saved the Java download into and enter:
make-jpkg jre-1_5_0_06-linux-i586.bin
(you may need to change the name to match what you downloaded) - This will have created a file called something like:
jre-1_5_0_06-linux-i586.deb
. Now type:sudo dpkg -i jre-1_5_0_06-linux-i586.deb
- Java should now be installed!
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