Fwd: Fwd: java -version different on Win vs Cygwin
Pete Brunet
peter.brunet at oracle.com
Thu Mar 22 15:09:46 UTC 2012
Should the 64 bit Win installer also install the 32 bit program? If not
it would be good to put a warning on download page.
-------- Original Message --------
Subject: Fwd: java -version different on Win vs Cygwin
Date: Thu, 22 Mar 2012 09:49:43 -0500
From: Pete Brunet <peter.brunet at oracle.com>
Reply-To: peter.brunet at oracle.com
To: build-dev <build-dev at openjdk.java.net>
I think I found the answer here:
http://www.curlybrace.com/words/2010/12/17/console-and-cygwin-dont-show-all-files-on-64-bit-windows/
Quote:
This is because Cygwin bash and Console are 32-bit applications, and I'm
running 64-bit Windows. With filesystem virtualization on Windows, when
a 32-bit process attempts to access %SYSTEMROOT%\System32, it is
redirected to %SYSTEMROOT%\SYSWOW64. Ironically named, System32 contains
64-bit applications, while SYSWOW64 contains 32-bit applications.
These give the same version:
Win 7 DOS prompt: \Windows\SysWOW64\java -version
Cygwin prompt: /cygdrive/c/Windows/System32/java -version
-------- Original Message --------
Subject: java -version different on Win vs Cygwin
Date: Thu, 22 Mar 2012 09:30:45 -0500
From: Pete Brunet <peter.brunet at oracle.com>
Reply-To: peter.brunet at oracle.com
To: build-dev <build-dev at openjdk.java.net>
I get different versions when I do the following. Why?
Win 7 DOS prompt: \Windows\System32\java -version
Cygwin prompt: /cygdrive/c/Windows/System32/java -version
Is that java.exe a stub that routes to a different java.exe? How do I
control which java is activated?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20120322/c70d52ac/attachment.htm>
More information about the build-dev
mailing list