Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

fix not seeing java as 64 bit on M1 processors

Open bombcar opened this issue 2 years ago • 1 comments

On macOS with an M1 or M2 processor, it returns os.arch=aarch64 which is not recognized as a 64 bit architecture by the code.

This fixes that and the spurious warning goes away:

Checking Java version...
Java is version 21.0.1, using 32-bit architecture, from Eclipse Adoptium.


Your Java architecture is not matching your system architecture. You might want to install a 64bit Java version.

bombcar avatar Dec 08 '23 20:12 bombcar

On macOS with an M1 or M2 processor, it returns os.arch=aarch64 which is not recognized as a 64 bit architecture by the code.

This fixes that and the spurious warning goes away:

Checking Java version...
Java is version 21.0.1, using 32-bit architecture, from Eclipse Adoptium.


Your Java architecture is not matching your system architecture. You might want to install a 64bit Java version.

I got this on Windows 11 running on a Raspberry Pi, so it's all java versions for ARM, except 8 for some reason.

The-Only-E avatar May 01 '24 17:05 The-Only-E