Apparently I had a throttled X11 process... after rebooting using -Djava.awt.headless=false worked.
On Sat, Nov 6, 2010 at 12:28 AM, David Orriss Jr <codethou...@gmail.com>wrote: > I ran into the same problem here. So I included the > -Djava.awt.headless=false command line option. I got a more descriptive > error. Not sure why tho.. X11 is running and I've set the correct value for > DISPLAY, as far as I know. > > Exception in thread "main" java.lang.InternalError: Can't connect to X11 > window server using ':0.0' as the value of the DISPLAY variable. > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > at > sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65) > at > sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110) > at java.security.AccessController.doPrivileged(Native Method) > at > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74) > at java.lang.Class.forName0(Native Method) > > > > > > On Tue, Nov 2, 2010 at 2:54 PM, <niagarasoft20-bsdport...@yahoo.com>wrote: > >> I forgot to add my build.sh file contents to the original post. >> >> ****build.sh***** >> >> #!/bin/bash >> unset CLASSPATH >> unset JAVA_HOME >> env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin >> make \ >> ALLOW_DOWNLOADS=true \ >> ALT_BOOTDIR=/usr/local/soylatte16-i386-1.0.3 \ >> ALT_JDK_IMPORT_PATH=/usr/local/soylatte16-i386-1.0.3 \ >> ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \ >> ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \ >> ALT_CUPS_HEADERS_PATH=/usr/include \ >> ANT_HOME=/usr/share/ant \ >> EXTRA_LIBS="-framework CoreFoundation" \ >> CC=gcc-4.0 \ >> CXX=g++-4.0 \ >> LANG=C \ >> NO_DOCS=true >> >> Regards, >> Mike >> >> >> --------------------------------------- >> >> >> >> ----- Original Message ---- >> From: "niagarasoft20-bsdport...@yahoo.com" < >> niagarasoft20-bsdport...@yahoo.com> >> To: bsd-port-dev@openjdk.java.net >> Sent: Tue, November 2, 2010 5:28:11 PM >> Subject: Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException >> >> When building on Mac OS 10.6 using solylatte described on the building >> page >> http://wikis.sun.com/display/OpenJDK/Darwin10Build, it compiles fine and >> javac >> is working, but when trying to run java and start.HelloWorldSwing Demo am >> getting the error: >> >> Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException >> at >> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:202) >> at java.awt.Window.<init>(Window.java:532) >> at java.awt.Frame.<init>(Frame.java:420) >> at javax.swing.JFrame.<init>(JFrame.java:224) >> at start.HelloWorldSwing.createAndShowGUI(HelloWorldSwing.java:60) >> at start.HelloWorldSwing.access$000(HelloWorldSwing.java:52) >> at start.HelloWorldSwing$1.run(HelloWorldSwing.java:77) >> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) >> at java.awt.EventQueue.dispatchEvent(EventQueue.java:660) >> at >> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211) >> >> >> at >> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) >> at >> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) >> >> >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) >> at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) >> >> >> Looks like it's having trouble connecting to the X11 environment. Any >> suggestions? >> >> Mike >> >> > > > -- > David Orriss Jr. > > My blog: http://www.codethought.com/blog > > -- David Orriss Jr. My blog: http://www.codethought.com/blog