JavaTM Development Kit

Version JDK 1.1.x

Installation Instructions

Solaris 2.4, 2.5, 2.5.1 for SPARC-based Machines
and Solaris 2.5 and 2.5.1 x86-based Machines

The installation and configuration process can be broken down into the following steps:

  1. Do pre-installation checks
  2. Unpack the downloaded file
  3. Delete the original file you downloaded (optional)
  4. Update path and environment variables
  5. Start using the JDK!

If you experience trouble along the way, check the Troubleshooting the Installation section at the end of this document.

1. Do pre-installation checks

2. Unpack the downloaded software file

If you unpack the software or documentation in a directory that contains a directory named jdk1.1.3, the new software will overwrite files of the same name in that jdk1.1.3 directory. Please be careful to rename the old directory if it contains files you would like to keep.

In a shell window, execute the commands listed below. Note that this temporarily creates a README file in the current directory (which will overwrite any README file you might have).

Note: substitute jdk1.1.3, etc. if appropriate.

This will bring up a license for you to read. If you agree, type yes, hit Return, and it will create a directory called jdk1.1.3 containing the JDK software, with the directory structure shown below.

Included in the unpacked files is a file lib/classes.zip. DO NOT UNZIP THE CLASSES.ZIP FILE. This file contains all of the core class binaries, and must remain in its zipped form for the JDK to use it.

JDK Directory Tree
The JDK software and documentation directories will have the following structure. The docs directory and its contents will be installed when you download and unpack the JDK documentation.


                           jdk1.1.3
    _________________________|_____________________________________
   |      |         |      |      |   |     |     |    |    |      |
README CHANGES COPYRIGHT LICENSE bin lib include demo src docs index.html
                                                            |
                               _____________________________|____
                              |       |        |       |         |
                             api  tooldocs relnotes  guide   index.html
                              |       |        |       |
 

The src directory shown above originally appears as a src.zip file in the Solaris installation, which you may manually unzip to obtain access to the source code for the JDK class libraries. However, you must use an unzip program that maintains long files names. Such unzip utitilities may be found at UUNet FTP Site.

3. Delete the original files you downloaded

If you want to recover disk space, delete the file you downloaded in step 1.

4. Update path and environment variables


Refer to Solaris Troubleshooting the Installation below if you have problems running the JDK.

Developing in both JDK 1.0.2 and JDK 1.1.3 - If you want to develop in both JDK 1.0.2 and JDK 1.1.3, you must set CLASSPATH and path separately for each JDK. To run both versions simultaneously, you can run each one from its own shell window. If you are running only one at a time, you can write a batch script to switch the values of the environment variables as appropriate.

5. Start using the JDK!

Your computer system should now be configured and ready to use the Java Development Kit. You start a tool by typing its name at shell window command line, with a filename as an argument. If you didn't set the path variable to point to the tools in step 4, you must specify the path to a tool by typing the path in front of the tool.

For example, if the JDK is installed at /usr/local/jdk1.1.3, you can run the JDK's complier, javac, by doing either of the following:

Type: /usr/local/jdk1.1.3/bin/javac myfile.java

-or-

Add /usr/local/jdk1.1.3/bin to your path statement
Type: javac myfile.java

You can start the AppletViewer by doing the following (once you've set your path as described above):

1. Use cd to change a directory containing an html file:
% cd jdk1.1.3/demo/TicTacToe
2. Run the appletviewer on the html file:
% appletviewer example1.html

Documentation for all the JDK tools can be found in your installed JDK directory structure at jdk1.1.3/docs/tooldocs/solaris/index.html or on the tools reference page on the JavaSoft website.


Troubleshooting the Installation