This discussion is archived
1 Reply Latest reply: May 25, 2011 11:23 AM by alex_mayorga RSS

unable to run 64 bit java.exe by default from 32 bit apps

853349 Newbie
Currently Being Moderated
Hello all.
I noticed the following strange behavior:

Fresh windows 7 64 bit install.
Install jdk-6u24-windows-x64.exe
This creates the file "c:\window\system32\java.exe"

running cmd.exe I can now run

c:\>java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

However, if I attempt to run this java.exe from within any other 32-bit app (ex: ruby, console2, python), it doesn't run. In fact, if I run console2 (which spawns and wraps cmd.exe), it can't actually even see the file c:\windows\system32\java.exe -- it's like it doesn't even exist. Adding the full path to java.exe (c:\program files\java\jre6\bin or what not) results in it now working well and being spawnable from within 32 bit apps. This smells like a bug.




  • Correct Answers - 10 points
  • Helpful Answers - 5 points