How to completely remove Java? (Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg')

前端 未结 7 1300
后悔当初
后悔当初 2020-12-31 06:35

I have passed the last couple of hours trying to downgrade Java to 1.6.0_13 in my attempt to get Google Web Toolkit\'s hosted mode to work on Eclipse.

And it has pro

相关标签:
7条回答
  • 2020-12-31 07:12

    If you want to downgrade Java you just need to set the JVM that Eclipse uses for compilation:

    Window > Preferences > Java > Installed JREs

    and then add a new JDK/JRE that you want, in your case Java 5 then check the box next to the JVM/JRE.

    0 讨论(0)
  • 2020-12-31 07:13

    If you want to use something with Eclipse you need Java for running Eclipse if I'm not totally mistaken

    0 讨论(0)
  • 2020-12-31 07:19

    The error generated when JAVA gets updated after installing update the folder name of jre gets changed with new version added to the jre and at time of installation of any other tool e.g. eclipse in my case which is looking for the same version at time of first install (jdk name is not changed may be only jre is updated and not jdk).

    So i guess this is post install script issue of JAVA update either all reference name should be changed after post install or none.

    0 讨论(0)
  • 2020-12-31 07:25

    VirtualBox (so long as you have sensible amount of RAM) is great for getting back to a nice crispy-clean set-up.

    0 讨论(0)
  • 2020-12-31 07:32

    Make sure you edit your PATH environment variable to remove any reference to %JAVA_HOME%\bin.

    Beyond that, it looks like Java is completely removed from your machine.

    0 讨论(0)
  • 2020-12-31 07:33

    I find it surprising that it's so hard to remove. Anyway, to answer your question, I'd look for and delete:

    • c:\windows\system32\java.exe
    • c:\windows\system32\javaw.exe

    Once those are deleted, you should be fine.

    That said, I seem to be able to run GWT in hosted mode with Java 1.6.0_14 just fine.

    0 讨论(0)
提交回复
热议问题