Select 32 bit VM on 64 bit System
883772Aug 22 2011 — edited Aug 25 2011Hello,
I'm developping an application which needs a 32-Bit VM because the use of a native 3rd party library which only supports 32-Bit. On a 64-Bit system which installed 32 and 64-Bit JRE I tried using the -d32 switch to force the use of the 32-Bit JRE. But I get the following error message:
C:\Users\tom>java -d32 -version
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
But the following works:
C:\Users\tom>java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
and this also:
C:\Users\tom>"C:\Program Files (x86)\Java\jre7\bin\java.exe" -d32 -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
I tried reinstalling the JREs but it doesn't help. So, why does'n the launcher find the 32-Bit JRE? Why doesn't the switch work as described ([http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_selection])?