Which JRE am I using?

后端 未结 9 1204
暗喜
暗喜 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:17

    I had a problem where my Java applications quit work with no discernible evidence that I could find. It turned out my system started using the 64-bit version rather than the 32-bit version was needed (Windows Server 2012). In Windows, the command:

    Javaw -version
    

    just brought me back to the command prompt without any information. It wasn't until I tried

    Javaw -Version 2>x.txt
    type x.txt
    

    that it gave me what was being executed was the 64-bit version. It boiled down to my PATH environment variable finding the 64-bit version first.

提交回复
热议问题