How to know the jdk version on my machine?

前端 未结 2 1360
醉梦人生
醉梦人生 2021-02-12 23:09

I have recently uninstalled JDK 11 and installed JDK 8. For confirmation, I want to check which JDK is installed on my Windows 10

相关标签:
2条回答
  • 2021-02-12 23:50

    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.

    0 讨论(0)
  • 2021-02-12 23:53

    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.

    0 讨论(0)
提交回复
热议问题