Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

Go to the Java website, choose the JRE or JDK based on your platform and needs. Download the requisite .bin file and upload the file to the serveradmin home folder. For older versions go to the Java Archives site.

Steps for JRE and JDK are both the same. Here is an example of a JDK setup,

Even on a 64-bit Operating System, 64-bit Java is not recommended at the moment due to significant loss in performance.

If you try and install 32-bit Java on 64-bit Ubuntu you will get the following error,

./jdk-6u22-linux-i586.bin
Unpacking...
Checksumming...
Extracting...
./jdk-6u22-linux-i586.bin: 113: ./install.sfx.7783: not found
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.

This is because the ia32-libs package is missing,

sudo apt-get install ia32-libs # Required for 32-bit Java on 64-bit Ubuntu

Now 32-bit Java can be installed.

su - serveradmin # If you are not already serveradmin
cd ~ # Switch to the serveradmin home directory
chmod +x jdk-6u22-linux-i586.bin
./jdk-6u22-linux-i586.bin

The result will be an uncompressed jdk directory using the same name as the package. In this example the folder name would be, jdk1.6.0_22.

To keep the instructions simple for this tutorial rename the folder,

mv jdk1.6.0_22 java
  • No labels