Because of a “gluegen” problem like this, it seems I need to run the Intel versions of Java on my M2 Macbook using Rosetta.
I tried looking up how to do this, and after trying SDKMAN, and just running the Intel installer from Oracle, nothing seems to work.
Details of what I tried with SDKMAN:
- Making a new terminal app that runs with Rosetta using these instructions.
This works as expected:
~ arch
i386
~ uname -m
x86_64
-
Edit
.sdkman/etc/config
to addsdkman_rosetta2_compatible=false
(unsure if I should do this) -
sdk install java 11.0.20-ms
(unsure if Microsoft is the provider I should be using) -
cat `which java` | file -
But this always shows an arm64 version.
How do I install an intel version of Java?