问题
I am running currently on Java 1.7.0_17 64bit version and I want to launch an app using Java 32 bit version.
I updated PATH variable to point to (C:\Program Files (x86)\Java\jre7\bin) Java 32 bit version. Then did a java -version it still shows the 64bit version.
I gave up and tried to do a java -d32 -jar abc.jar and then it gives me an
java -d32
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
Please let me know how can the system refresh the latest Java settings done in the PATH variable.
回答1:
There is probably a java.exe in your C:\WINDOWS\System32\ folder leftover from the previous installation. Replace it with the one in C:\Program Files (x86)\Java\jre7\bin.
来源:https://stackoverflow.com/questions/20410555/java-default-version-doesnt-reflect-after-path-change