Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

rogerdpackApr 6 2011 — edited May 25 2011
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.

Related: http://betterlogic.com/roger/2011/04/cannotunable-to-run-java-exe-from-cwindowssystem32

Thanks!
-r
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2011
Added on Apr 6 2011
1 comment
353 views