Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Friday, May 30, 2014

How TO Install JDK on Windows

  1. Download the latest version of the *Java JDK from Sun Microsystems.
  2. Install the Java Software Development Kit Step 2.jpg

    Double-click on the install file and it should open an installer (Fig. 1).
  3. Install the Java Software Development Kit Step 3.jpg
    3
    Click next, then read and accept the license.
  4. Install the Java Software Development Kit Step 4.jpg

    On the next screen you will encounter some options. Just leave these alone and click next unless you know what you are doing. (Because this is being read it is assumed that you do not.)(Fig. 2)
  5. Install the Java Software Development Kit Step 5.jpg

    The next page you encounter should install (and in some cases download) the Java Development Kit. (Fig. 3)
  6. Install the Java Software Development Kit Step 6.jpg

    After the installer is finished, open run by clicking Start > Run... or by typing Windows Key + R.
  7. Install the Java Software Development Kit Step 7.jpg

    In the text box, type "cmd" and click "OK".
  8. Install the Java Software Development Kit Step 8.jpg

    A simple window should be opened with a black background and a text prompt. This is called the "Command Prompt." My command prompt background is red, but it could really be any color. (Fig. 4)
  9. Install the Java Software Development Kit Step 9.jpg

    After focusing the window, type "javac" and press enter. If the prompt returns something along the lines of: "'javac' is not recognized as an internal or external command, operable program or batch file" then continue with the next step. If it shows many more options and lines, skip to step 15.
  10. Install the Java Software Development Kit Step 10.jpg

    Open the properties of "My Computer" by either right-clicking the icon on the desktop or right-clicking Start > My Computer. When the pop up menu opens, scroll to the bottom and select "Properties".
  11. Install the Java Software Development Kit Step 11.jpg

    This should open a window named "System Properties". Click on the "Advanced" tab and then click "Environment Variables". (Fig. 5)
  12. Install the Java Software Development Kit Step 12.jpg

    Next, another window opens with a lot of confusing sentences and letters. Double-click on the "Path" variable on either of the option boxes. It is recommended to edit the variable in the box "User variables for (your username)".
  13. Install the Java Software Development Kit Step 13.jpg

    Once the variable is opened, a text box in yet another window appears. Careful not to delete anything in this box. At the end of the text box, add a semi-colon if there is not one already, and add "C:\Program Files\Java\jdk1.6.0\bin" to the text box. This is assuming you did not change the file path of the installation.
  14. Install the Java Software Development Kit Step 14.jpg

    Click "Apply" and "OK" to all the windows you have just opened. Open the command prompt again, while following steps 6-9 to see if that "javac" command works.
  15. Install the Java Software Development Kit Step 15.jpg

    Congratulations! You have succesfully installed JDK on your system.