Getting Started With Sun Java

NOTE: All your programs will be graded by testing them on Sun Solaris workstations, using Java Development Kit (JDK) 1.1. You may develop your solutions on any platform you like, but make sure that ultimately they work under Solaris, with JDK 1.1.

To use Sun's JDK 1.1, you must be on a Sun machine in the Andrew domain. This includes the Wean Hall rooms 5201, 5202, and 5204. JDK consists of a number of utilities in the directory /usr/local/bin. You should only need to use two of them:

More documentation on using these utilities can be found in javac.ps and java.ps, respectively. To compile and run a java program that is in a file named test.java, simply type:
    javac test.java
    java test

We will be using JDK version 1.1 in this class. The default version of JDK on the Sun machines is 1.0, as you can see by typing:

    java -version
Java should respond with:
    java version "1.0"
To change this to version 1.1, type (and add to your .login file):
    setenv JAVA_1_1 true
Now, in response to java -version, you should get:
    java version "1.1_Final"