Here is my second post about How to install JAVA on windows 10 for those of who are new to this amazing language. The steps are similar to steps involved in installing java to any other version of windows so if you have some other version then don’t worry follow the given steps.

Step 1

Go to link . Click on Download JDK.


Step 2

  1. Accept License Agreement
  2. Download latest java JDK for your version(32 or 64 bit) of java for Windows


install Java


Step 3

Once the download is complete, run the exe to install jdk . Click Next- Next-Next






Step 4

Once the installation is complete click Close.


And here you have your java development kit installed in your windows. You will see your Java folder contains two folders –  jdk1.8.0_91 and jre1.8.0_91



The process is not over yet. Before you could compile and run your java programs you need to set PATH and CLASSPATH variables. (Are you wondering what these are? Be patient you will know soon).

Step 5

We start with setting the PATH and then the CLASSPATH variables for java in our Windows.

1) Right Click on This PC (or my computer) and select Properties option.

2) Now click on Advanced System Settings.



3) In the next window that appears, under the Advanced tab click on Environment Variables.


4) Under system variable on Environment Variables Window, select path variable and click on edit.


5) Now you will have Edit environment variable window, Click New.

Once you click New, use browse option to browse to the location of bin folder. Click OK. This sets the PATH variable.


Note – if you have some other version of windows you will have to append this location to PATH variable. You can do this by simply putting a semicolon (;) at the end of the current variable value and then add the location of bin folder to it. Make sure you don’t alter other specified locations.


6) Now to set CLASSPATH variable, under the System variables Click on New


7) Under New System Variable window, specify variable name and variable value as follows.


Note- myClasses is a folder created by me in jdk folder. You can create the folder by any name, anywhere (JVM will find your .class files here). You can specify more than one folder simply by separating each location by a semicolon.

Also don’t forget to write “ ; .”(without quotes) at the end which tells JVM to look for .class files in current directory.

8) Click OK – OK – OK and you are done.


You are now ready to run your first java program.

I Hope you found this helpful. If you are still facing any problem you can drop a comment down there.

Leave a Reply

%d bloggers like this: