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