Java

Our default Java installation is version 1.5.0_06 from Sun.

Example Session

$ cat Main.java 
import java.io.*;
import java.lang.*;

public class Main {

public static void main(String args[]) throws Exception {

System.out.println("hello\n"); } } $ javac Main.java $ java Main hello

$

We also provide Java 1.4.2_10 from sun, but if you want to use that rather than the default, you need to do some special configuration:

$ JAVA_HOME=/opt/java2/j2sdk1.4.2_10; export JAVA_HOME
$ PATH=$JAVA_HOME/bin:$PATH; export PATH
$ which javac
/opt/java2/j2sdk1.4.2_10/bin/javac
$ which java
/opt/java2/j2sdk1.4.2_10/bin/java

You can then put those environment variable settings in your shell init files so they stick. For example, if your shell is bash, you can put those commands in ~/.bashrc and ~/.bash_profile.