Java – how to determine whether the JRE is 32 / 64 bit from the folder structure / file
•
Java
I have a JRE folder on windows Is there any way to determine whether the JRE is 32-bit or 64 bit by looking at the internal files?
For clarification, I have multiple JRE folders and I want to investigate each
This does not duplicate the suggested copy I want to know which arch JRE is designed for, not the arch of the machine it is installed on
Solution
You can check the release file in the Java root directory and view the OS_ ARCH. These are the contents on my windows 8 machine; It is' AMD64 'for 64 bits and' i586 'for 32 bits
64 bit:
JAVA_VERSION="1.8.0_31" OS_NAME="Windows" OS_VERSION="5.2" OS_ARCH="amd64" SOURCE=" .:fde671d8b253 corba:f89b454638d8 deploy:6bb9afd737b2 hotspot:4206e725d584 hotspot/make/closed:3961887b77fc hotspot/src/closed:5b436b7ac70c hotspot/test/closed:63646d4ea987 install:b2307098361c jaxp:1dd828fd98f1 jaxws:9d0c737694ec jdk:1fbdd5d80d06 jdk/make/closed:ebe49cb8785a jdk/src/closed:ef076fdb2717 jdk/test/closed:ab9c14025197 langtools:7a34ec7bb1c8 nashorn:ec36fa3b35eb pubs:532faa86dd91 sponsors:477c30a7726d" BUILD_TYPE="commercial"
32-bit:
JAVA_VERSION="1.8.0_31" OS_NAME="Windows" OS_VERSION="5.1" OS_ARCH="i586" SOURCE=" .:fde671d8b253 corba:f89b454638d8 deploy:6bb9afd737b2 hotspot:4206e725d584 hotspot/make/closed:3961887b77fc hotspot/src/closed:5b436b7ac70c hotspot/test/closed:63646d4ea987 install:b2307098361c jaxp:1dd828fd98f1 jaxws:9d0c737694ec jdk:1fbdd5d80d06 jdk/make/closed:ebe49cb8785a jdk/src/closed:ef076fdb2717 jdk/test/closed:ab9c14025197 langtools:7a34ec7bb1c8 nashorn:ec36fa3b35eb pubs:532faa86dd91 sponsors:477c30a7726d" BUILD_TYPE="commercial"
Alternatively, go to the bin folder and execute Java - version
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码