The complexity of this process caught me off guard. As a linux user, I instinctively went to My Computer --> Properties --> Advanced --> Environment Variables, and set the pathes. It doesn't work this way though. (Gentoo users, enjoy your java-config util and laught at me)
After some digging, here are the steps worked for me.
- Copy java.exe, java2.exe, javaws.exe from C:\Program Files\Java\jdk1.5.0_??\bin to C:\WINDOWS\system32\ to overwrite existing 1.6 version files.
- Open registry editor, goto Start --> Run, type in "regedit" and enter.
- Do a search for "JavaSoft", you should find something under HKEY_LOCAL_MACHINE -->SOFTWARE --> JavaSoft --> Java Runtime Environment, modify "CurrentVersion" key to "1.5" or the version you want.
- Update the correspondent environment variables.
Thanks a lot, this saved me from having to uninstall/reinstall to downgrade then uninstall and reinstall back to 1.6.
ReplyDeleteThe article is as true today as when it was written :)
This comment has been removed by the author.
ReplyDeleteJust wondering, why you couldn't remove Java 6 from Control Panel->Add or Remove Programs? I just installed Java 1.5.0_22 then removed Java 6. Then go to this site:
ReplyDeletehttp://www.java.com/en/download/installed.jsp
I see my Java version is 1.5.0_22