Java default version doesnt reflect after PATH cha

2019-06-17 05:47发布

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条回答
对你真心纯属浪费
2楼-- · 2019-06-17 06:43

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.

查看更多
登录 后发表回答