Which JRE am I using?

后端 未结 9 1223
暗喜
暗喜 2020-12-02 16:29

There are two varieties of JRE available. Java VM: IBM vs. Sun.

Is there a way to know which JRE I am using through JavaScript or some Java issued command.

9条回答
  •  情书的邮戳
    2020-12-02 17:05

    1. Open up your:
      • command prompt if you're using Windows
      • terminal if you're using mac or Linux
    2. Type in:

      java -version // This will check your JRE version
      javac -version // This will check your Java compiler version if you installed the JDK
      
    3. Grab a cup of coffee and you're done! You don't need to add the .exe to the java -version if everything is installed correctly.

提交回复
热议问题