|
Most Linux distributions do not have Java JDK 1.6 available as a package, so we're going to download and install it directly from Sun.
NOTE: Even if your Linux distribution has a JDK 1.6 package available, it's still a better idea to download the most recent version directly from Sun, as this ensures fresher code and a complete distribution.
NOTE: If you already have an older version of Java on your system, and are concerned about upgrading, there's no reason to worry as you can safely have two different versions of Java running at the same time. If you follow these instructions, then only OrderlyStats SE will use the new version of Java you are about to install.
You can find a self-extracting binary for Linux using this direct link (32-bit) or this direct link (64-bit) (right-click to save. If in doubt, choose the 32-bit version), or by browsing http://java.sun.com/javase/downloads/index.jsp - make sure you get the Development Kit (JDK), not the Runtime Environment (JRE) release as Tomcat will only run with the JDK.
Note: You don't need Java EE or JavaFX - just get the plain JDK .
Once you get to the download page, choose file that ends .bin, not the file that ends .rpm.bin.
Download this file to your hard drive, and make it an executable with chmod 700 jdk-6u18-linux-i586.bin
Then, run the file with ./jdk-6u18-linux-i586.bin
You'll be asked to agree to the licence agreement, and a new folder containing the JDK will be created.
Now move the whole JDK folder to a more convenient location with mv jdk1.6.0_18 /usr/lib/java
This will be your JAVA_HOME.