Login  Register

Re: JOGL for Mac ARM Silicon

Posted by CharlieBoy on Nov 12, 2022; 3:26pm
URL: https://forum.jogamp.org/JOGL-for-Mac-ARM-Silicon-tp4040887p4041923.html

I am trying to get JOGL working on a new iMac M1 machine.  I am using jReality 3D JOGL scene graph, working within Eclipse IDE Mars 4.5.  I migrated my files from my old 2017 iMac yesterday.

On the new iMac, I have installed the ARM gluegen and jogl dylib files from SweetHome3D described in this thread.

My JOGL apps work on the new iMac, via Rosetta, running the Java code and Intel JDK from my old iMac.

But it is unacceptably slow. All the JOGL apps I tested run with a frame rate from between 3 and 10 times slower than on the 2017 iMac, even thought I have read that the Radeon 575 and the M1 GPU are about equally capable.

This led me to suspect that I need an M1 version of the Java JDK.

Apparently, Oracle does not offer one. But I tried the following three:
Zulu JDK 8.66.0
AdoptOpenJDK 11.0.9
Microsoft JDK 11.0.17

Zulu JDK 8 compiles and runs my apps but they don't find the jogl libraries, although they are successfully found when I use the Oracle JDK 8 Intel instead.  Any ideas how to fix this welcome.

The JDK 11's don't work at all, they can't find java.lang.Object or java.awt.Color. I assume that has to do with basic changes that took place between JDK 8 and JDK 11 regarding the class path of which I know next to nothing. (Call me Rip van Winkle.)  If anyone has a simple solution or a reference to how to migrate from 8 to 11 I'd appreciate hearing.

Thanks in advance for your help.