Java default version doesnt reflect after PATH change

戏子无情 提交于 2019-12-23 09:17:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!