Update to JogAmp 2.6.0 for get rid of illegal access warnings from gluegen-rt.jar
Originally the idea was to upgrade to 2.4.0, but it seems to introduce regressions that are fixes in 2.6.0 but it is not yet released.
https://jogamp.org/deployment/v2.4.0/ contains the 2.4.0 JogAmp release which has been released after many many years since the previous 2.3.2 version we've been using so far.
There are many fixes involved (https://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_for_the_release_2.4.0) but one notable thing is modular java support to avoid these:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/C:/w/ws dir/apros/trunk/.metadata/.plugin/org.eclipse.pde.core/.bundle_pool/../../../../g3d/vtk.rendering/lib/gluegen-rt.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
I've tested simply replacing all the native DLLs with 2.4.0 versions of them and also gluegen-rt.jar
and jogl-all.jar
. This seems to work as before but without the above illegal reflective access warning.
Edited by Tuukka Lehtonen