Login  Register

Java3D: Illegal reflective access

Posted by Andrew2563 on Dec 11, 2020; 7:47am
URL: https://forum.jogamp.org/Java3D-Illegal-reflective-access-tp4040908.html

I've been getting the familiar warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline
(file:/D:/jogl/j3dcore.jar) to method sun.awt.AppContext.getAppContext()

I'm running Windows 10 on an Intel Core i5 9300H, with Intel UHD
graphics 630.

OpenGL version: 4.5.0 - Build 25.20.100.6617

 > java --version
java 15.0.1 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)

I'm using the latest  JOGL  (2.4) and Java 3D (1.7).

My Java3D program runs, but there's an additional problem -- the 3D view
is clipped, so that part of the scene is not displayed. This problem
disappears when I switch back to Java 1.6, although I still get the
reflective access warning.

I've tried running JOGL 2.4. on its own with the JOGLQuad.java example,
and it compiles and runs without any problems or warnings.

Any suggestions on fixes?