Running Java Swing on JDK 1.2 on Dept Sun Workstations

JDK 1.2 has been installed on all the Sparc 5 Sun Workstations in Lab C 2.08. NOTE JDK 1.2 will not currently run on the few Sparc 4 machines.

Configuring your user path for JDK 1.2

You must configure you default path in order to access and run JDK 1.2. To do this:

If you intend to use the current terminal then you must


source .cshrc.mine
NOTE:

To verify that you are running the correct version of JDK type


java -version

You should get Version JDK1.2

Running JDK1.2/Swing from Sparc 4 Workstations

This cannot be directly done. It is NOT recommended that you revert back to JDK1.1.

If you can only gain access to a Sparc 4 machine in the lab then:

Changing Swing Programs for JDK 1.2

You may need to change some of the source programs designed to run for JDK1.1. This includes many of the book examples and some examples used in the lectures.

You can do this as follows: