Build failed: java.awt.HeadlessException

72 views
Skip to first unread message

Jens Schliesser

unread,
Sep 7, 2014, 1:42:29 AM9/7/14
to codenameone...@googlegroups.com
Hello,

I am newbie to codenameone and I get the following exception when sending a build request:

build-for-android-device:
BUILD FAILED
.../build.xml:451: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:181)


I´m running Eclipse Luna (4.4.0) on Mac OSX with JDK 8u20. 

Any help is greatly appreciated.

Best regards

Shai Almog

unread,
Sep 7, 2014, 12:25:27 PM9/7/14
to codenameone...@googlegroups.com
Hi,
that's an odd issue. I haven't run into that one on a desktop.
However, we know there is an issue with Eclipse and JDK 1.8. You need to update the VM Eclipse itself uses to point at 1.7.x by editing the eclipse ini file which is a bit painful. We discussed the process in the forum previously.

Jens Schliesser

unread,
Sep 8, 2014, 1:40:13 AM9/8/14
to codenameone...@googlegroups.com
Thank you! http://wiki.eclipse.org/Eclipse.ini and its working :) 
Reply all
Reply to author
Forward
0 new messages