Install Java

Download-Install-Java-JDK-8-in-Windows

How to Download & Install Java JDK 8 in Windows

This Java Development Kit(JDK) allows you to code and run Java programs. It’s possible that you install multiple JDK versions on the same PC. But Its recommended that you install only latest version.

How to install Java for Windows

Following are the steps for JDK 8 free download for 32 bit or JDK 8 download 64 bit and installation

Step 1) Go to link. Click on JDK Download for Java JDK 8 download.

Download-Install-Java

Step 2) Next,

  1. Accept License Agreement
  2. Download Java 8 JDK for your version 32 bit or JDK 8 download for windows 10 64 bit.

Download & Install Java JDK 8

Step 3) When you click on the Installation link the popup will be open. Click on I reviewed and accept the Oracle Technology Network License Agreement for Oracle Java SE and you will be redirected to the login page. If you don’t have an oracle account you can easily sign up by adding basics details of yours.

Download & Install Java JDK 8

NOTE: You will be required to create an Oracle Account to start download of the file.

Step 4) Once the Java JDK 8 download is complete, run the exe for install JDK. Click Next

Download & Install Java JDK 8

Step 5) Select the PATH to install Java in Windows… You can leave it Default. Click next.

Download & Install Java JDK 8

NOTE: Follow the onscreen instructions in succeeding installation steps.

Step 6) Once you install Java in windows, click Close

Download & Install Java JDK 8

How to set Environment Variables in Java: Path and Classpath

The PATH variable gives the location of executables like javac, java etc. It is possible to run a program without specifying the PATH but you will need to give full path of executable like C:\Program Files\Java\jdk1.8.0_271\bin\javac A.java instead of simple javac A.java

The CLASSPATH variable gives location of the Library Files.

Let’s look into the steps to set the PATH and CLASSPATH

Step 1) Right Click on the My Computer and Select the properties

Download & Install Java JDK 8

Step 2) Click on advanced system settings

Download & Install Java JDK 8

Step 3) Click on Environment Variables

Download & Install Java JDK 8

Step 4) Click on new Button of User variables

Download & Install Java JDK 8

Step 5) Type PATH in the Variable name.

Download & Install Java JDK 8

Step 6) Copy the path of bin folder which is installed in JDK folder.

Download & Install Java JDK 8

Step 7) Paste Path of bin folder in Variable value. Click on OK Button.

Download & Install Java JDK 8

Note: In case you already have a PATH variable created in your PC, edit the PATH variable to

PATH = <JDK installation directory>\bin;%PATH%;

Here, %PATH% appends the existing path variable to our new value

Step 8) You can follow a similar process to set CLASSPATH.

Download & Install Java JDK 8

Note: In case you java installation does not work after installation, change classpath to

CLASSPATH = <JDK installation directory>\lib\tools.jar;

Step 9) Click on OK button

Download & Install Java JDK 8

Step 10) Go to command prompt and type javac commands.

If you see a screen like below, Java is installed.

Download & Install Java JDK 8

For more : Java