I just installed the jdk1.7 and while javac works, java.exe does not. The problem is with my path. I have added the %JAVA_HOME%\bin to the end of my path. I'd rather not add it to the front, I suppose that would be one solution.
The problem is that someone (not me) or something as copied the java6.24 to the following path:
Who did that! bash/cmd are find this java.exe (version 1.6) instead of my new java.exe (version 1.7) later in my path! What should I do? Delete that rogue copy in SysWOW64?
OK, I did a quick google search and found this:
Hmm... I don't understand the resolution. It says: "The fix is to make sure the 64 gets in there when we copy the RemoveFile table for 64-bit. " I think this a sun internal document for their developers. What am I supposed to do? Delete c:\Windows\SysWOW64\java.exe?
I think the easiest and best way is to make sure that the bin directory if your Java 7 JDK is in the PATH before the directory where it finds the wrong exe. Deleting files in Windows system directories manually is almost never a good idea. I think that if you delete the java.exe in the Windows system directory, Java might not work anymore in your browser.