Downloading and Setup of Java on your Personal Machine

[  Java on PCs  |   Java in the PC Labs  |   Java on the Unix machines  |   Notes!  ]
[  Return to the main page  ]

JAVA for PCs

If you desire, you can download the Java Developer's Kit (version 1.1.6 for Windows/Solaris and version 1.0.2 for Macs). JDKs are available for the Intel and Mac platforms if you are running Solaris/Win95/WinNT (for Intel) and MacOS (for 68030/25Mhz Macs ). See below for downloading and installation help from the Sun Microsystems pages and links for the JDK itself:


JAVA in the PC Labs

The Windows 95 machines in both M G-26 and M G-27 have not been installed with Java. To work with Java and be in a Computer Science lab, you should access your Sun account (see next section).

JAVA on the Unix machines

You can always use your Sun Workstation Cluster account to compile and run Java. It is already installed for you, so you should be all set to compile. The machines below are Solaris machines that have been tested for running Java: Next, be sure that you have access to the java compiler (and other programs) by typing:
   bash$ which javac
to see if the javac program is in your path. It should return /opt/local/bin/javac. You are now ready to compile and run java programs:
   bash$ javac filename.java
 (compiles the program)
   bash$ java filename
  (runs the program)

NOTES:

If the which program can not find the javac executable (it will say "no javac in.............", then you need to add the path to the PATH variable. Use the pico program to edit your .login file, adding the following line:

PATH=$PATH:/opt/local/bin
Also, add the proper entry for the CLASSPATH environment variable in your .profile file:
CLASSPATH=/opt/local/bin:.; export CLASSPATH

Return to the start of this guide