JOGL 2.4 and Java 17 report

Posted by Martin on
URL: https://forum.jogamp.org/JOGL-2-4-and-Java-17-report-tp4041572.html

Hi,

I have been able to run JOGL-2.4.0-rc4 (i.e. 2021-01-11 + support for Apple Silicon chip, available on Maven) as is on Java 17 (so without recompiling JOGL+Gluegen).

I verified this by running all unit and integration tests of Jzy3D which mainly use AWT and here are my results :

- Windows 10 is OK, as long as one adds the add-export options that Julien already mentioned on bugzilla.
- Ubuntu 20 is OK
- Ubuntu 18 is failing to load native lib (as reported by Julien - I also encountered the same problem with JOGL 2.3.2 on Ubuntu 18)
- macOS 11 + Silicon chip is OK despite a warning about AppContext (Caught AppContextInfo(Bug 1004) IllegalAccessException: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext...). The --illegal-access=permit; support was removed in 17.0 so it has no effect but it does not prevent my AWT application to run.
- macOS 10 + Intel Iris GPU is OK, same warning as above.
- macOS 10 + NVidia GPU is OK, same warning as above.

I encountered crashes when using Newt in AWT, but Alexis reported that Newt is working good for SWT.

These tests are not exhaustive. I wanted to run JOGL unit tests on Java 17 so I built gluegen and jogl with Azul OpenJDK for macOS 11 + Silicon. I have then been able to compile Gluegen and JOGL. Gluegen tests are all passing, however I still encounter lot of JVM crashes when running JOGL unit tests as I had in the past with Java 11.

Any additional feedback on Java 17 will be appreciated here :)

Martin