How to know the jdk version on my machine?

前端 未结 2 1318
醉梦人生
醉梦人生 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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.

提交回复
热议问题