Java and arm64e

I have installed the latest Oracle JDK on my MBP M1:


which java
/usr/bin/java

java --version
java 11.0.11 2021-04-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode)

file /usr/bin/java
/usr/bin/java: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/bin/java (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/bin/java (for architecture arm64e):	Mach-O 64-bit executable arm64e

lipo -archs /usr/bin/java
x86_64 arm64e


So it seems the JDK is finally available for Mac arm64e, but when I run Java programs, for example sqlcl it is still Intel kind, as seen in the Activity Manager. How can I force running arm64e Java?

MacBook Pro 13″, macOS 11.4

Posted on Jun 2, 2021 9:18 AM

Reply
7 replies

Jun 2, 2021 9:30 AM in response to excelsior_ink

I don't use Java on purpose, but I do have several arm64 binaries created by the Command-line tools for Xcode 12.5 and none of these identify as arm64e architecture. None of my third-party universal binary applications show arm64e either. The arm64-specific download of Visual Studio Code v1.55.2 only shows arm64, not arm64e.


The lipo utility also shows these as arm64, not arm64e, so there is something bogus with that Java 11 distribution.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Java and arm64e

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.