Running java in 32-bit mode on Windows 64

I need to run java in 32-bit mode under Windows 8.1 64 bit.

I installed java 7 jre under c:\Program Files\Java\jre7(64bit JVM) and under c:\Program Files (x86)\Java\jre7(32bit JVM).

However, if I issue from cmd java -d32 -version, I get this error:

Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.

Without a switch, -d32it confirms its work as a 64-bit JVM:

Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

So, I opened the java control panel and added a 32-bit JVM to the installed JRE user (the system tab does not allow me to change anything, even if it works as an administrator), but nothing changes.

I read several user posts saying that with java 7+, the mode -d32should be supported, but I can not get it. Can someone help me?

. : 64- JVM, .

+4
4

. launchj4 exe, JRE, , 32- JVM, .. (. JRE). JRE , .

, exe .

+3

FAQ:

32 64- ? ?

-d32 -d64 Java , 32 64- . Solaris ILP32 LP64 , . Solaris 32 64- J2SE , Java, . -d32 -d64, default - 32- . Java (javac, javadoc ..) 64- . -d32/-d64 , Java, -J (: -J-d64).
(Windows Linux) 32- 64- . , , "", . Java Linux -d64.

+3

32 64 . Infact 32- 64- (, java6 java7). JRE , .

jre Java PATH. , Java 32bit PATH, Java-64- . Java, . JAVA32HOME C:\java\java6 (32 )

% JAVA32HOME%\bin\java...

, , PATH. java.exe, PATH, , .

+1

32- Java, :

Java

0

Source: https://habr.com/ru/post/1543021/


All Articles