Home > Support > HOWTO List > Applications > Howto: Install or Update Java

Java howtos

Howto: Install or Update Java

Most of our VPSs come with the Sun JDK pre-installed, since so many of our customers end up using Java servers like Tomcat, Glassfish and JBoss.

We use a standard script (http://proj.ri.mu/installjava.sh) to install and update the JDK.

You can use this script to install or update the Sun JDK on your Linux server.  It installs a recent version of the java development kit at /usr/java/$version. And updates the symlink /usr/java/jdk along with some environement variables in your system profile like JAVA_HOME.

wget --quiet http://proj.ri.mu/installjava.sh
bash installjava.sh

Run the script with the '--help' option to get a look at the parameters you can pass to the script.