How to set up your computer for doing Java




If you're going to start developing your project in Java there's a couple of things you're going to need to do first:

Downloading and Installing Java

To get the most recent version of the Java SDK go to the website and download Java 2 (JDK1.3) and it's documentation. You don't need to download the J2RE (Java 2 Runtime Environment) as it's already included in the Java 2 package.

Make sure you remove any earlier installations of the JDK - try Add/Remove programs from the Control Panel, or just delete the entire directory. Run the exe file for Java 2 and follow the prompts. Installing in the default directory 'c:\jdk1.3' is probably a good idea. Next you need to install all the docs stuff so double click on the documentation zip file. If you don't have winzip you can download it from www.winzip.com.
When winzip opens:

When that's done Java 2 is fully installed. All that's left to do is set the paths for compiling and running Java.

Setting the Paths

That's what Sun recommends you do but just in case you get errors about finding classes or something change the classpath so it reads like this instead.

set CLASSPATH=c:\jdk1.3\jre\lib\rt.jar;

Fire up your computer again (reboot) and you're away.

If you're running from the command line use:

One last thing, if you're compiling/running from DOS, type 'doskey' so you can use the Up and Down arrows to scroll through your command history.

Running an App

Menu
Last updated August 15th 2000