How to determine if JRE is 32/64 bit from folder structure / files
I have a JRE folder on Windows system. Is there a way to tell if the JRE is 32-bit or 64-bit from looking at the files inside?
To clarify, I have several JRE folders and I want to explore them.
This is not a duplicate of the suggested duplicate. I want to know what architecture the JRE is for, not the arch of the machine installed on
+3
source to share
2 answers
You can check the file release
in the Java root directory and look at OS_ARCH. These are the contents of my Windows 8 machine; for 64-bit - "AMD64", and for 32-bit - "i586".
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 folder bin
and execute java -version
.
+5
source to share