Login  Register

Illegal reflective access with jogamp-java3d1.7.0-final

Posted by RickLutowski on Mar 31, 2023; 4:54am
URL: https://forum.jogamp.org/Illegal-reflective-access-with-jogamp-java3d1-7-0-final-tp4042358.html

Have ported some old java3d programs to java3d1.7. They compile ok, but running them gives

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/usr/local/_jreality/jogamp-fat.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
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!


Another post from Nov 2022 encountered a similar problem with java3d1.7.0-pre, but the problem was said to have been solved by java3d1.7.0-final.  Except I'm getting what appears to be a slightly different variant of it with -final, this time on linux Mint rather than ms windows.

While these are warnings, they are fatal enough to keep the gui from appearing. This differs from the Nov case when something was drawn on the screen.


My java version is

openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)


My system classpath is

echo $CLASSPATH
.:/usr/local/_jreality:/usr/local/_jreality/vecmath.jar:/usr/local/_jreality/j3dcore.jar:/usr/local/_jreality/j3dutils.jar:/usr/local/_jreality/jogamp-fat.jar:/usr/local/_jreality/jogl-all-natives-linux-amd64.jar:/usr/local/java/lib/tools.jar:/usr/local/java/lib:/usr/local/java/bin:/usr/local/java:/usr/local/_oa/_oaapps:/usr/local/bin

Get the same error when running with the java command

java -cp /usr/local/_jreality:/usr/local/_jreality/j3dcore.jar:/usr/local/_jreality/jogamp-fat.jar:/usr/local/_jreality/vecmath.jar   <program name>


Let me know what other info I can provide that would be helpful.
Thanks.