On Saturday, October 15, 2011 11:25:57 PM dim9999 [via jogamp] wrote:
>
> 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 stack trace:
> [code]
> 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]
> [/code]
> additional information:
> - I am using build jogl2.0-b510.
> - Platform: ubuntu 11.10 amd64
>
> is anybody know what does that means?
Yes, you launch java in 'headless' mode, ie. '-Djava.awt.headless=true'
or using a headless JVM.
I will test on ubuntu 11.10 today, but it's sort of unrelated here.
~Sven
>