Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

eclipse

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 proven to be a nightmare-ish task!

In retrospect:
- All references to Java in the Control Panel -> Uninstall a Program tool have been removed
- Those that didn't want to be removed, have been forced to by Microsoft's "Windows Installer Cleanup Utility" - http://support.microsoft.com/default.aspx?scid=kb;en-us;290301
- An annoying folder called "JRE" was still sitting around, so I deleted it

Now, if I open a command prompt and type java, I still get:

Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'

Which means that it's still hidden somewhere...

What else do I have to do to remove it completely?

like image 580
Farinha Avatar asked Jun 29 '09 19:06

Farinha


Video Answer


1 Answers

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.

like image 179
Jack Leow Avatar answered Sep 24 '22 02:09

Jack Leow