Java Setup

Instructions for checking Java version and Java installation:


Windows

For this class, you should have either Java version 1.4.1 or 1.4.2. You can check which version of Java is your default version by doing the following steps:

  1. Open up a command prompt. There are two ways to do this:
  2. In the command window, at the prompt, type: java -version
    For the freshman laptops, you should see something like:
    java version "1.4.1_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_04-b01)
    Java HotSpot(TM) Client VM (build 1.4.1_04-b01, mixed mode)
    The first line should indicate a version that starts with either 1.4.1 or 1.4.2.
  3. If you do not have a version of Java that is recent enough, you may ask IT to help you. Or, you can download and install it yourself. The following instructions explain how to download and install Java 1.4.2.

Linux

For this class, you should have either Java version 1.4.1 or 1.4.2. You can check which version of Java is your default version by doing the following steps:

At a prompt, type: java -version
For the freshman laptops, you should see something like:

java version "1.4.1_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_04-b01)
Java HotSpot(TM) Client VM (build 1.4.1_04-b01, mixed mode)
The first line should indicate a version that starts with either 1.4.1 or 1.4.2.

If instead, you get bash: java: command not found
then java has not been setup on your path (this is the case with the freshman laptops). Some version of java should be installed in /usr/java. The directory name will indicate the version of java. Add the java bin directory to your path and try again. The recommended way of doing this is to create a symbolic link called /usr/local/bin/java which refers to the java bin directory and add the symbolic link to your path. This way, upgrading to a new version of java just involves updating the symbolic link. If you have an older version of java, get a newer rpm and install it.