Install Java for PC (Windows and some Unix)

Before you start your download:

-For Windows 7: -For other versions of Windows:
To install:
  1. Go here.
  2. In the Java Platform, Standard Edition box, click on the Download JDK button.
  3. Click the "Download" button under "Download Java SE Develepment Kit".
  4. On the download page under the "Platform" pull-down menu select "Windows" if you have a 32-bit OS or "Windows x64" if you have a 64-bit OS. Then click "Continue".
  5. A download page will pop-up. Click on the file under "Java SE Development Kit".
  6. Locate where you downloaded the installation file on your computer and double-click it to start the installation.
  7. Keep clicking "Next" until the installation is complete.


Setting the Path - Windows

  1. Right-click the "Computer" icon from the start menu and select "Properties".
  2. Go to the "Advanced system setting" option.
  3. In the window that opens (System Properties - Advanced tab) click "Environment Variables".
  4. In the "User variables for <name>" section at the top, look for the variable "Path" (not PATH).
  5. If the "Path" variable already exists, click "Edit". If it doesn't exist, click "New".
       "Variable name": Path
       "Variable value": Add YOUR_JAVA_BIN_PATH (should be ;C:\Program Files\Java\jdk1.6.0_21\bin;. ) to the end
        (Make sure the path starts with ";" and ends with ";.")
  6. In the "System Variables" section, look for the variable "CLASSPATH".
  7. If the "CLASSPATH" variable already exists, click "Edit". If it doesn't exist, click "New".
       "Variable name": CLASSPATH
       "Variable value": Add ";." to the end, if it's not already there. If there is no current value, put just ";."
  8. Keep clicking "OK" until the "System Properties" window closes.
  9. Close all open programs (you might have to restart) for these changes to take effect.
  10. Now you should be able to compile programs with just 'javac' and run programs with 'java' without having to be in the java bin directory.