• Home
  • Testing
  • SAP
  • Web
  • Must Learn!
  • Big Data
  • Live Projects
  • Blog

Following are steps to install Java in Windows

Step 1) Go to link. Click on Download JDK. For java latest version

How to install Java JDK 8 and Java 8 download

Step 2) Next,

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

How to install Java JDK 8 and Java 8 download

Step 3) Once the download is complete, run the exe for install jdk . Click Next

How to install Java JDK 8 and Java 8 download

Step 4) Once install is complete click Close

How to install Java JDK 8 and Java 8 download

Step 5) Set Environment Variable, " PATH = <JDK installation directory>\bin;%PATH%"

For Java 1.8

PATH = C:\Program Files\Java\jdk1.8.0_31\bin;%PATH%

How to install Java JDK 8 and Java 8 download

If the latest version on Java website is 1.8.0_65, your class path will be C:\Program Files\Java\jdk1.8.0_65\bin;%PATH%

Step 6) Set Environment Variable, "CLASSPATH = <JDK installation directory>\lib\tools.jar;"

For Java 1.8

CLASSPATH = C:\Program Files\Java\jdk1.8.0_31\lib\tools.jar;

Step 7) Restart your PC. Go to command prompt and type javac

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

How to install Java JDK 8 and Java 8 download

Having trouble installing Java? Check our Online Java Compiler

 

YOU MIGHT LIKE: