Friday, August 28, 2015

Install JDK 8 on Windows 10, and set Path

Browse to Oracle Java SE Downloads (http://www.oracle.com/technetwork/java/javase/downloads/index.html) to download the latest JDK.


Check the option to Accept License Agreement, and select the download file. "jdk-8u60-windows-x64.exe" in my case.


Run the downloaded file after download completed. And follow the steps.


After installed JDK, you have to set Path to it.

To set path, search "Environment Variables", click "Edit the system environment variables".

Click on "Environment Variables..."

Select and edit Path

Add the  path of the bin folder of your JDK, "C:\Program Files\Java\jdk1.8.0_60\bin" in my case.


After path set, you can run javac in command prompt.

16 comments:

  1. Any idea why I always get through the same steps but at the end when you hit EDIT > PATH, you receive a box that says Edit System Variable on top. I ALWAYS get a box that says Edit Environment Variable and it has an entire list of items to edit. Your example shows Edit System Variable and only 2 boxes to edit: Variable Name and Variable Value. I have a screen shot if you want to see the different box that I see.

    Thanks

    ReplyDelete
    Replies
    1. When that window pops up just press the new button and input the file name that you have copied and it should work.

      Delete
  2. i have done each and every step but when i run eclipse it shows errors.. what are the possible reason of that

    ReplyDelete
    Replies
    1. after copying the directory adds the "\bin" that is missing

      Delete
  3. I have got a new HP laptop and it has come with windows 10 home. After downloading the Java JDK file I double click on it and the pop up box says do you want to make the change to your system and I click yes but after that just nothing happens. I have never used windows 10 before leave alone the home version. Can someone help me out please.

    ReplyDelete
  4. My Windows 10... keeps saying this App can't run on this PC... Why
    I want to install the JAVA SE Development Kit on Windows 10

    ReplyDelete
    Replies
    1. Same error with my windows 10. Please provide some alternative.

      Delete
  5. I followed all the steps but I'm getting this error:

    'javac' is not recognized as an internal or external command,
    operable program or batch file.

    ReplyDelete
  6. I had to add it on User Variables -> Path -> add the Java directory with your bin folder

    ReplyDelete
  7. 'javac' is not recognized as an internal or external command,
    operable program or batch file

    ReplyDelete
    Replies
    1. you have 2 folders while installing java. so add the 2nd folder also on user variables to have the javac available.

      Delete
  8. 'javac' is not recognized as an internal or external command,
    operable program or batch file

    ReplyDelete
  9. Meine Windows 10 ... hält zu sagen, diese APP kann nicht auf diesem PC laufen ... Warum
    Ich möchte das Java SE Development Kit auf Windows 10 installieren

    ReplyDelete
  10. Nice post. Do you have any reference material for webfirmframework?

    ReplyDelete
  11. PLEASE HELP ME!!!

    When i download and open java jdk 32bit (jdk-8u144-windows-i586.exe) version on my win 10 32 bit os it does'nt open and tells that { THIS INSTALLATION PACKAGE COULD NOT BE OPEN . PLEASE VERIFY IT EXISTS OR CONTACT THE VENDOR} . i have downloaded so many times and the error does'nt disappear. i have tried going to services and starting the WINDOWS INSTALLER. but still the error exists. i have also noticed that other .exe files are working fine except this jdk .
    please tell me what should i do.
    AND
    Thank you!

    ReplyDelete
  12. thanks a lot. very useful tutorial.

    ReplyDelete