Department of Mathematics and Computer Science

Installing JDK on Windows

There are detailed instructions available at: http://www.cs.armstrong.edu/liang/intro4e.html

Click on Configuring JDK, compiling, and running programs from DOS prompt. This will download a pdf file containing instructions and examples. In addition, here are some further instructions that people have found useful.

After installing JDK from the disk, go to C: directory, and find the folder just installed. It will have a name like j2sdk1.4.2_04. Uppercase or lowercase is not important. But if your folder has a slightly different name, write it down exactly. I'll call it name in what follows.

If you don't have Windows 95 or 98:

  • Under the Start menu, pick Control Panel, from this pick System.
  • In the System properties window, click the Advanced tab, then the Environment Variables button (near the bottom of the window).
  • You are going to change the System Variables. In this window click PATH and then the Edit button. (If PATH does not exist, use the New button to make one). At the end of the string you are editing, add

    ;C:\name\bin

    (That's a semicolon, the letter C, a colon, a backslash, the name you wrote down earlier, a backslash, and the word bin.) Click OK. Then reboot.
  • In the Command Prompt window, type javac. If it says not found, you have a problem. If it complains about a missing file, things are ok.

Last modified: Oct 13, 2011

Text Only Version of Site | Make This Website Talk