How do I detect whether 32-bit Java is installed on x64 Windows, only looking at the filesystem and registry?

前端 未结 6 1696
执念已碎
执念已碎 2020-12-15 04:58

I need to determine whether a particular system has 32-bit Java installed. I\'m doing a remote query that only gives me access to the filesystem and registry, so I cannot a

6条回答
  •  抹茶落季
    2020-12-15 05:42

    This seems to provide the info on Windows:

    1.) Open a windows command prompt.

    2.) Key in: java -XshowSettings:all and hit ENTER.

    3.) A lot of information will be displayed on the command window. Scroll up until you find the string: sun.arch.data.model.

    4.) If it says sun.arch.data.model = 32, your VM is 32 bit. If it says sun.arch.data.model = 64, your VM is 64 bit.

提交回复
热议问题