How to check JDK is present on my windows machine or not ?

Steps to follow :

jdk_vs_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)

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\

environment_variables_path


 

Share

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.