File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Siegfried Heintze
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic