Sun's JDK (thanks to Kelly Keene!)
If you don't have access to any of the other Java systems, you can also download and
install Sun's JDK for free!
Installation Guidelines for Sun Microsystem's Java Development Kit (JDK1.1.x):
- Download the preferred JDK version.
(The latest version is 1.1.7b)
- Move the downloaded file into the directory where you want the JDK installed.
- In order to properly use the JDK programs you must set one or two environment variables:
Open C:\autoexec.bat in Notepad or Wordpad. (You may also do this by using "set"
commands at the command prompt)
PATH must be set to include the bin subdirectory. For example: If you installed the JDK in
the C:\ directory, you must add C:\jdk1.1.7b\bin to the end of the PATH line. It may look
like the following: PATH C:\windows;C:\jdk1.1.7b\bin.
For the new variable to take effect, execute the following at the command prompt: C:\>
autoexec.bat
The JDK environment should work properly now....
If you receive error messages similar to "Unable to initialize threads: cannot find
class..." or have other problems then try to either unset the CLASSPATH variable or
set it as follows:
To set: Edit the autoexec.bat file in the same manner as above to include the following:
CLASSPATH=.;C:\jdk1.1.7B\lib\classes.zip
(Notice the "dot", "semicolon", before the pathname)
To unset: At the command prompt, type:
set CLASSPATH=
(this sets the value to nothing)
Programs can now be written in a simple text editor, saved as filename.java, compiled
and run at the command prompt similar to using esus (javac to compile, java to run).
If you are using Windows NT, go to Control Panel, System, Environment and set the
variables in the dialog box provided.
Other helpful Sun links:
- Download JDK
1.1.7.
- Java Tutorial.
- Bug Reports.
- In-depth Installation
Instructions and troubleshooting (this documentation is also included with the
software).