Windows 7 - System32 folder - java.exe

喜夏-厌秋 提交于 2019-11-29 08:55:26

What a_horse_with_no_name suggested fixed my problem.

I uninstalled both JDKs (6 and 7), then I reinstalled both of them without
checking the 'install public JRE' option. This really fixed everything. Now the behavior is totally predictable (I can control it with setting my Windows PATH in the way I want).
Also, I don't have any java.exe in my System32 folder.

Posting this answer here just so that others could benefit from it.

Looks like you might be on Windows 7 (I could be wrong). You can access the Java control panel by:

Start > Control Panel 
Click "Programs" 
Then "Java" should appear on the bottom (below Desktop Gadgets). 
Click on Java then select the "Java" tab in the "Java Control Panel". 
Click the "View..." button.
Then you can click Find or Add and then check "Enabled" for the one you want to use.

After making changes, open a new command prompt and enter java -version to verify your changes.

I think this might address what you need.

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