InaccessibleObjectException
Posted by malcolmryan on Jan 24, 2020; 3:28am
URL: https://forum.jogamp.org/InaccessibleObjectException-tp4040284.html
I've just started using JOGL and I'm seeing some errors I don't understand.
Caught AppContextInfo(Bug 1004) InaccessibleObjectException: Unable to make public static sun.awt.AppContext sun.awt.AppContext.getAppContext() accessible: module java.desktop does not "exports sun.awt" to module jogl.all on thread main
The program seems to run OK even with this error. Can I just ignore it?
Details:
* I'm running OS X 10.14.6
* Oracle JDK 13
* The latest autobuild of Gluegen (gluegen-2.4-b931-20200113-macosx-universal) and JOGL (jogl-2.4-b1502-20200116-macosx-universal)
* Eclipse 4.14.0
The code is very simple:
import javax.swing.JFrame;
import com.jogamp.opengl.GLAutoDrawable;
import com.jogamp.opengl.GLEventListener;
import com.jogamp.opengl.awt.GLCanvas;
public class Example1 extends JFrame implements GLEventListener {
private GLCanvas myCanvas;
public Example1() {
super("Example 1");
setSize(600,400);
myCanvas = new GLCanvas();
myCanvas.addGLEventListener(this);
this.add(myCanvas);
this.setVisible(true);
}
@Override
public void init(GLAutoDrawable drawable) {
}
@Override
public void dispose(GLAutoDrawable drawable) {
}
@Override
public void display(GLAutoDrawable drawable) {
}
@Override
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
}
public static void main(String[] args) {
new Example1();
}
}