Skip to Main Content

Java Development Tools

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 32 bit JVM in 64 bit apps

916331May 22 2012 — edited May 23 2012
Hello all.

I would "expect" that 64-bit apps would be able to run java.exe after the jre is installed (64 bit apps can spawn 32 bit ones). However that appears to not currently be the case.

I noticed that if you install the 32-bit jvm on a 64-bit OS (windows), then open (64 bit) cmd.exe
then run

$ java -version

'java' is not recognized as an internal or external command,
operable program or batch file.

This is because instead of installing it to a directory then adding that dir to the path, the jre installer drops a java.exe it into c:\windows\system32 (which causes it, I presume, to actually be written to c:\windows\syswow64).

The path always contains c:\windows\system32
This means that 32-bit apps will "have" java.exe in their path, whereas 64-bit ones will not. I cannot imagine this is expected. Any feedback here?

related: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4964338
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2012
Added on May 22 2012
5 comments
869 views