Java is a programming language developed by Sun Microsystems which offers developers the ability to write platform-independent programs. One of the biggest advantages to the platform independent approach to programming is that programs can run as applets in a client's browser, rather than having to run on the server.

Java1 is available as a default program on your VPS v2 and can be found in the /usr/local/bin directory on your server. Note: the VPS v3 Pro Plus plan supports the latest Java Development Kit and Java Runtime Environment.

Installing Java2

We only recommend using Java2 on VPS2 Pro Plus or MPS servers due to the significant RAM requirements. Also please note that as a "ports" install, we cannot support Java on the VPS2 platform. Our VPS v3 Pro Plus plans for FreeBSD or Linux include installers for Java.

Due to the nature of the Java2 license, there are several steps that you must go through in order to install Java on your VPS v2.

  1. Dowload the J2SDK version 1.5 or 1.6 from You may be required to register with Sun before downloading the J2SDK. Once you have downloaded the file, save it on your VPS v2 in the /var/distfiles/ directory (you may need to make the directory first).

  2. Download the Linux JDK from and copy it into the /var/distfiles/ directory of your VPS v2.

  3. Download the BSD patch for the JSDK for version 1.5 or 1.6 and copy it into the /var/distfiles/ directory of your VPS v2.

  4. Once both the files have been placed in the /var/distfiles directory, install java by running the following commands as root from your VPS v2 shell prompt.

    # cd /ports/java/jdk15
    # make
    # make install
    # make clean

    For Java 1.6, use /ports/java/jdk16. It will take several minutes for make to build and install Java and all the dependencies.

In order for your Java programs to find the Java compiler, you will need to indicate the full path to java in the program, or add the path to your shell's PATH.

Please note: the information on this page applies to ITS web hosting plans. It may or may not apply to other environments. If you are looking for a feature described here, or better support from your hosting provider, please consider hosting your site with ITS!

1555 N Naperville/Wheaton Road, Suite 107
Naperville, IL 60563
phone 630.420.2550
fax 630.420.2771