banner



How To Check Whether Java Jdk Is Installed Or Not

3 Answers 3

you might need to add path in environment variables which you can find in Control Panel open the Jdk where you installed and add until /bin in the path in environment variables.

Add until /bin in path variable in System Variables which is residing in Environment Variables.

Then do java -version which might show up.

If still problem persists, try restarting your pc and see.

answered Aug 5 '19 at 17:41

5

  • Your method worked for me. But i've installed jdk version 8 and in cmd java version "1.8.0_221" is coming. What does that mean?

    Aug 5 '19 at 18:02

  • It means you have JDK 8 installed

    Aug 5 '19 at 18:09

  • you are good, you have installed Java 8 and the _221 is just the update release(They keep on adding some features or there will be minor updates), for more info you can refer by clicking here oracle.com/technetwork/java/javase/…

    Aug 5 '19 at 18:15

  • -version is useless: C:\Windows\system32>java -version java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8.0_281-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode)

    Feb 17 at 17:47

  • My java -version shows java version "15.0.2" 2021-01-19. How do I find out what my JDK is?

    Mar 11 at 12:31

You need to update your Windows path to include your %JAVA_HOME%\bin directory. %JAVA_HOME% is the directory that you installed Java into and is also an environment variable that you need to configure for command line execution of your applications. You can edit both of these in the Windows control panel and you should restart.

When you run java -version you will see the internal version number. This is explained here: https://en.wikipedia.org/wiki/Java_version_history.

Basically, you can ignore the 1. when reading version number. The _xxx is a reference to the most recent patch or build release.

answered Aug 5 '19 at 19:55

1

  • java version vs jdk versions could be different ? Seems useless or confusing at best ! JDK, JSE, it's all a bit bloody mess

    Feb 17 at 17:48

On Windows 10, this required mapping the environment variable for JAVA_HOME to the JDK installation directory. Use these steps:

  1. Run the installer for the JDK. (available for windows here: https://www.oracle.com/java/technologies/downloads/#jdk17-windows)

  2. windows key -> Environment Variables, select the only result

  3. In the System Properties window that opened, select Environment Variables enter image description here

  4. Select new button under the User variables section

  5. Variable name: JAVA_HOME, Variable Value: <The JDK filepath from step 0>

  6. ok all open menus

  7. Close any open cmd prompt windows

  8. open a new cmd window and type echo %JAVA_HOME% It should print the installation path for the JDK.

answered Oct 31 at 23:52

Not the answer you're looking for? Browse other questions tagged java java-8 or ask your own question.

How To Check Whether Java Jdk Is Installed Or Not

Source: https://stackoverflow.com/questions/57363446/how-to-know-the-jdk-version-on-my-machine

Posted by: blackwastain.blogspot.com

0 Response to "How To Check Whether Java Jdk Is Installed Or Not"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel