RFR: JDK-8258755: jpackage: Invalid 32-bit exe when building app-image

Alexey Semenyuk asemenyuk at openjdk.java.net
Wed Jan 13 17:10:05 UTC 2021

On Wed, 13 Jan 2021 13:14:17 GMT, Andy Herrick <herrick at openjdk.org> wrote:

>> I agree is better to have the check in windows specific code (not Platform) and will move it.
>> The "os.arch" System property in 32  java is "x86" regardless of whether running on 64 or 32 bit version of Windows, It reflects the arch of the running JVM (not the arch of the os as the name implies), so checking if system property "os.arch" is "x86" is the same as checking if "sun,arch.data.model" is "32".  Since "os.arch" is the more documented property I think we should continue to use that.
> (note:) I do build 32 bit java on windows to test this, I can "make CONF=windows-x86 images", but building installers is not supported and currently building test has problems in hotspot.

Agree on `os.arch`


PR: https://git.openjdk.java.net/jdk/pull/2030

More information about the core-libs-dev mailing list