Steps to follow :
- Check path on your machine : C:\Program Files\Java\
- If JDK is available verify below steps. If jdk is not available, download it from link https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and run the installer to install jdk on your machine.
- Note : Folder should be JDK not jre
- open cmd command prompt
- Check the java version available on your machine :
- run the command java -version
- Output should be as below :
- C:\Users\gaurav>java -version
java version “1.8.0_131”
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
- C:\Users\gaurav>java -version
- Also check below command to check “Path” set up for your windows operating system.
- Command to Run : echo %path%
- Example :
- C:\Users\gaurav>echo %path%C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Android;C:\Windows\System32;C:\wamp\bin\php\php7.0.23\;C:\Program Files\nodejs\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Apple\Internet Services\;C:\Program Files\Java\jdk1.8.0_131\bin;C:\Users\gaurav\AppData\Roaming\npm;
- You can also check the Location on your machine too :
- Go to Folder : C:\Program Files\Java\
- You will find : jdk folder example : jdk1.8.0_131 — name of this folder will change based on sub version of jdk
- How to update Path on windows with jdk bin location ?
- Open “This PC” app on windows OS machine
- Right click on “This PC”
- Click on “Advanced System Properties”
- Click on “Environment Variables”.
- Go to System Variables
- Click on Path
- To add a “New” entry, click on “NEW” Button
- add full path till bin of your jdk on your machine.
- Example in this case —- C:\Program Files\Java\jdk1.8.0_131\bin\
Leave A Comment?
You must be logged in to post a comment.