Download the Demo Programs.
- Make a Java directory somewhere. I suggest c:\java.
- Click Here
- Save this file in the java directory you have created.
- Unzip it.
- Proceed to download JDK, or if you already have a working version, go Back to Lab 6
How to install JDK 1.2.2 for MS Windows environments at home
If you don't have a cable modem, It is probably faster to get on the bus, do the work at school and go home again than it is to download it. It is a 20 megabyte file.
The fastest possible download over the York connection will be about an hour and a half. However, you will rarely get downloads at the full capacity of the connection (33.6 Kbits/Second to York).
Here's how you do it. (Read the instructions first).
- Click here
- There's a big red link, dead center in the page -- "CLICK HERE". Click it.
- A window will pop up, asking you where you want to save the file. I recommend c:\temp, as you will not need these files after JDK is installed.
- Once you have selected the location. Click Save.
- A download window will pop up, this will tell you how much time (estimated) will be required to download the file. Look at it and decide whether you should go see a movie or not. Angela's Ashes was pretty good.
- Now that you're back from the movie, and the download is done, we are ready to install JDK.
- Use Explorer, and go to C:\temp> (or wherever you saved it). Click on the icon.
- A whole bunch of stuff will happen, just click "I Agree" or "Next" and carry on through the process. This will take a few minutes. I don't recommend changing the default directory and filenames.
- At the end, Select "Restart My Computer".
- You may, if you wish, delete the JDK.1.2.2 file from C:\temp. It is no longer required.
- We have to set a few environment variables.
For Windows 95/98 users
- Go to the start menu, Click Run. Type "sysedit" in the box. Click "OK"
- a whole bunch of windows will open, Like this:
- Make sure that the C:\autoexec.bat window is on top.
- Find the line that says "SET PATH=C:\...."
- Go to the end of that line and type: ";C:\JDK1.2.2\BIN" (No Quotes) (Note: This will only work if you accepted the default paths for the install.)
- Now, look for a line that says SET CLASSPATH =C:\...". (This may not exist.)
- If it exists, add a ";C:\JDK1.2.2\src.jar" to the end.
- If it doesn't exist, add the line "SET CLASSPATH = C:\JDK1.2.2\src.jar" to the autoexec.bat file.
- Click on "File", "Save" and then exit the sysedit window.
- Go to the DOS prompt, and type autoexec.bat
- You're done! Back to Week 6 lab
For Windows NT users
Note: This is not tested.
- Go to the Start menu.
- Select "Settings", "Control Panel"
- Select "System", "Environment"
- Look for "Path" in the User and System Variables.
- Add ";C:\jdk1.2.2\bin" to the right of the existing value.
- Look for "Classpath" If it doesn't exist, Type CLASSPATH in Value, and "C:\jdk1.2.2\src.jar" in Variable. Click Set.
- If it already exists, add ";C:\jdk1.2.2\src.jar" to the right of the curent value.
- Shut down the Control Panel (save all changes).
- NOTE: this will only affect the current user. You'll have to do it for each user, or get someone to set the system variables.
- You're done. Back to Week 6 lab