File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Should I delete c:\Windows\SysWOW64\java.exe so I can run Java 1.7? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Should I delete c:\Windows\SysWOW64\java.exe so I can run Java 1.7?" Watch "Should I delete c:\Windows\SysWOW64\java.exe so I can run Java 1.7?" New topic
Author

Should I delete c:\Windows\SysWOW64\java.exe so I can run Java 1.7?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 381

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:

c:\Windows\SysWOW64\java.exe

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:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6717435

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?
Thanks,
Siegfried
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14104
    
  16

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Should I delete c:\Windows\SysWOW64\java.exe so I can run Java 1.7?