Exception in thread "main" java.awt.HeadlessException [solved]

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception in thread "main" java.awt.HeadlessException [solved]

dim9999
This post was updated on .
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...
Reply | Threaded
Open this post in threaded view
|

Re: Exception in thread "main" java.awt.HeadlessException

Sven Gothel
Administrator
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

>
Reply | Threaded
Open this post in threaded view
|

Re: Exception in thread "main" java.awt.HeadlessException

dim9999
thanx