Exception in thread "main" java.awt.HeadlessException [solved]
Posted by
dim9999 on
Oct 15, 2011; 9:25pm
URL: https://forum.jogamp.org/Exception-in-thread-main-java-awt-HeadlessException-solved-tp3424756.html
Hello everybody. I can't run example from sample tutorial at "
http://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_Swing". It is in the section about "jogl in swing"...
I got an exception... Here is the stack trace:
-----------------------------------------
Info: XInitThreads() called for concurrent Thread support
Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:197)
at java.awt.Window.<init>(Window.java:534)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:218)
at OneTriangleSwingGLCanvas.main(OneTriangleSwingGLCanvas.java:50)
X11Util.Display: Shutdown (close open / pending Displays: false, open (no close attempt): 0/0, pending (not closed, marked uncloseable): 1)
X11Util: Pending X11 Display Connections: 1
X11Util: [0]: NamedX11Display[:0.0, 0xb06ac0, refCount 0, unCloseable true]---------------------------------------------
additional information:
- I am using jogl2.0-b510 build.
- Platform: Linux ubuntu 11.10 amd64
- java: java-7-openjdk-amd64
i have already solved this problem...
i don't really understand all dependencies, but the decision was to install proprietary jdk6u27 from Oracle...