Go to the Java website, choose the JRE or JDK based on your platform , download and needs. Download the requisite .bin files and upload them to the serveradmin home folder. For older versions go to the Java Archives site.
Now to setup javaSteps for JRE and JDK are both the same. Here is an example of a JRE setup,
Code Block | ||
---|---|---|
| ||
su - serveradmin # If you are not already serveradmin cd ~ # Switch to the serveradmin home directory chmod +x jre-6u16-linux-i586.bin ./jre-6u14-linux-i586.bin # Decompresses JRE to the current folder under jre1.6.0_16. |
...