Java and Linux


I need to use Java, and I need to use a recent version, so I downloaded mine from The means that we do not have a Debian package, and some extra work is required.

JDK Installation

If you run the script that you have downloaded, then it will create a directory, such as j2sdk1.4.0_02. This should be copied to /usr/local.

Profile Changes

The file /etc/profile should be altered so that /usr/local/j2sdk1.4.0_02/bin is on the path. I'm not sure that it is strictly necessary, but I also set the JAVA_HOME variable (/usr/local/j2sdk1.4.0_02) and the CLASSPATH variable (to just a single dot).