2007-2008 Supercomputing Challenge New Mexico Supercomputing Challenge
I
I
I
I
I
I


Registration

Proposals
Interims
Final Reports

Dates

Kickoff
Evaluations
Expo
STI
Wiki

School Map
Sponsors

Mail

Challenge
Technical Guide



Past Participant Survey

GUTS

 

Installing Java

System Requirements

The JavaTM 2 SDK is intended for use on Windows 95, Windows 98 (1st or 2nd edition), Windows NT 4.0 with Service Pack 5, Windows ME, Windows 2000 Professional, Windows 2000 Server, or Windows 2000 Advanced Server operating systems running on Intel hardware. In non-English locales, only the Professional edition of Windows 2000 is supported.

A Pentium 166MHz or faster processor with at least 32 megabytes of physical RAM is required to run graphically based applications. Forty-eight megabytes of RAM is recommended for applets running within a browser using the Java Plug-in product. Running with less memory may cause disk swapping which has a severe effect on performance. Very large programs may require more RAM for adequate performance.

You should have 70 megabytes of free disk space before attempting to install the Java 2 SDK software. If you also want to install the documentation download bundle, you will need an additional 120 megabytes of free disk space.


Installation Instructions

In this procedure, you will run the self-installing executable to unpack and install the Java 2 SDK software bundle.

Note: After the Java 2 SDK software has been installed, you will be asked to reboot your system, which completes the registry modifications that you will need if you ever want to deinstall this product later. To continue using these instructions after rebooting, either print them now or use your Web browser's history function to get back to this page.

The installation procedure has the following steps:

  1. Check the download file size
  2. Run the Java 2 SDK installer
  3. Delete the downloaded file(s)
  4. Update the PATH variable
  5. Check the CLASSPATH variable (Optional)


Note: For any lines on this page containing the following notation, you must substitute the appropriate update version number for the notation.
      <version number>
For example, if you are downloading the installer for update 1.3.1_01, the following file name:
      j2sdk-1_3_1_<version number>-win.exe
would become:
      j2sdk-1_3_1_01-win.exe

1. Check the download file size
Before you download a file, notice that its byte size is provided on the download page. Once the download has completed, check that you have downloaded the full, uncorrupted software file.
2. Run the Java 2 SDK installer
The file j2sdk-1_3_1_<version number>-win.exe is the Java 2 SDK installer. If you downloaded it instead of running it directly from the web site, double-click on the installer's icon. Then follow the instructions the installer provides. When done with the installation, you can delete the download file to recover disk space.

Installed Directory Tree
The Java 2 SDK has the directory structure shown below.

                   jdk1.3.1_<version number>
  ____________________|___________________
 |    |    |    |    |   |  |    |    |   |
 |    |    |    |   bin lib |    |  demo  |
 |    |    | LICENSE |   |  |    |       jre
 |    | COPYRIGHT           |    |      __|__
 |  README                  | include  |     |
README.html           include-old     bin   lib

3. Delete the downloaded file(s)
If you want to recover disk space, delete the file (or files) you originally downloaded.
4. Update the PATH variable
To set the PATH permanently, add the full path of the jdk1.3.1_<version number>\bin directory to the PATH variable. Typically this full path looks something like C:\jdk1.3.1_<version number>\bin. Set the PATH as follows, according to whether you are on Windows NT or Windows 95/98/2000/ME.

Windows NT and Windows 2000 - To set the PATH permanently:

  1. Choose Settings, Control Panel, and select System. On Windows NT, select the Environment tab; on Windows 2000 select the Advanced tab. Look for "Path" in the User Variables and System Variables. If you're not sure where to add the path, add it to the right end of the "Path" in the User Variables. A typical value for PATH is:
         C:\jdk1.3.1_<version number>\bin 
    
    Capitalization doesn't matter. Click "Set", "OK" or "Apply".

    The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a Java SDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to jdk1.3.1_<version number>.

  2. The new path takes effect in each new Command Prompt window you open after setting the PATH variable.

Windows 98, Windows 95 - To set the PATH permanently, open the AUTOEXEC.BAT file and add or change the PATH statement as follows:

  1. Start the system editor. Choose "Start", "Run" and enter sysedit, then click OK. The system editor starts up with several windows showing. Go to the window that is displaying AUTOEXEC.BAT.

  2. Look for the PATH statement. (If you don't have one, add one.) If you're not sure where to add the path, add it to the right end of the PATH. For example, in the following PATH statement, we have added the bin directory at the right end:

    PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3.1_<version number>\BIN 
    
    Capitalization doesn't matter. The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows searches for programs in the PATH directories in order, from left to right. You should only have one bin directory for a Java SDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to jdk1.3.1_<version number>.

  3. To make the path take effect in the current Command Prompt window, execute the following:
          C:> c:\autoexec.bat
    
    To find out the current value of your PATH, to see if it took effect, at the command prompt, type:
          C:> path
    

Windows ME - To set the PATH permanently:

From the start menu, choose programs, accessories, system tools, and system information. This brings up a window titled "Microsoft Help and Support". From here, choose the tools menu, then select the system configuration utility. Click the environment tab, select PATH and press the edit button. Now add the SDK to your path as described in step b above. After you've added the location of the SDK to your PATH, save the changes and reboot your machine when prompted.

5. Check the CLASSPATH variable (Optional)

The CLASSPATH variable is one way to tell applications written in the Java programming language (including the Java 2 SDK utilities) where to look for user classes (classes that you develop). (The -classpath command-line switch is the preferred way.) If your machine does not have the CLASSPATH variable set, you can ignore the rest of this step. To check this, run the set command from the DOS prompt:
  C:> set
If CLASSPATH does not appear in the list of settings, it is not set. If your CLASSPATH variable is set to some value, you may want to clean up your CLASSPATH settings, so read on.

Should I modify the CLASSPATH variable?
The Java 2 SDK will work fine even if CLASSPATH is set for an earlier version of the SDK software, as long as it contains the current directory ".". However, if your CLASSPATH contains classes.zip (which was only in JDK 1.0.x and JDK 1.1.x), and you don't plan to continue using those earlier versions, you can remove that setting from the CLASSPATH now. In any case, if CLASSPATH is set, it should include the current directory -- this makes it possible to compile and then run classes in the current directory.

How do I modify the CLASSPATH?
Use the same procedure you used for the PATH variable in the previous step and either:

  • Remove the CLASSPATH environment variable entirely.
    With Java 2 SDK, the default value is ".", the current directory. To include any user classes, use the -classpath command line switch instead with java, javac, javadoc and other tools. This is the recommended approach because it doesn't force one CLASSPATH for all applications.
    -OR-
  • If you have applications that require CLASSPATH be set, keep those required user classes in CLASSPATH and include the current directory "." If you're no longer using JDK 1.1.x, remove classes.zip.
For more information, see Setting the class path.

For questions about the Supercomputing Challenge, a 501(c)3 organization, contact us at: consult1314 @ supercomputingchallenge.org

New Mexico Supercomputing Challenge, Inc.
Post Office Box 30102
Albuquerque, New Mexico 87190
(505) 667-2864

Supercomputing Challenge Board of Directors
Board page listing meetings and agendas
If you have volunteered for the Challenge, please fill out our In Kind form.
Flag Counter

Tweet #SupercomputingChallenge