Could not instantiate Graphics Environment with building on mac

Chris Hegarty chris.hegarty at oracle.com
Wed Jan 30 12:22:08 UTC 2013


Anyone see this failure when trying to build on mac. I have the latest 
jdk8/tl forest, as of 28th Jan.

## Starting jdk
Importing CORBA classes.jar
Importing CORBA src.zip
Importing CORBA bin.zip
Importing JAXP classes.jar
Importing JAXP src.zip
Importing JAXWS classes.jar
Importing JAXWS src.zip
Importing LANGTOOLS src.zip
Importing LANGTOOLS classes.jar
Compiling 182 files for BUILD_TOOLS
Generating charsetmapping classes
Generating buffer classes
Generating exceptions classes
Generating icon classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Compiling 522 properties into resource bundles
Copying and cleaning 53 properties
Creating sun/util/LocaleDataMetaInfo.java from 421 found resources.
Aliases: Table size 1024 (10 bits), shift 0, max chain depth 3
Classes: Table size 32 (5 bits), shift 1, max chain depth 3
Cache: Table size 32 (5 bits), shift 1, max chain depth 3
MergingHash:<Bridgesupportparser::ObjCArgInfo>thePoint[name]: thePoint 
=> aPoint
Exception in thread "main" java.lang.Error: Could not instantiate 
Graphics Environment: sun.java2d.HeadlessGraphicsEnvironment
	at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:118)
	at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
	at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
	at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1142)
	at sun.awt.X11.ToBin.main(ToBin.java:41)
make[2]: *** 
[/Users/chhegar/repos/tl/build/macosx-x86_64-normal-server-release/jdk/gensrc/sun/awt/X11/XAWTIcon32_java_icon16_png.java] 
Error 1
make[2]: *** Waiting for unfinished jobs....
MergingHash:<Bridgesupportparser::ObjCArgInfo>thePoint[name]: thePoint 
=> aPoint
make[1]: *** [gensrc-only] Error 2
make: *** [jdk-only] Error 2
mikemac:macosx-x86_64-normal-server-release chhegar$

-Chris.



More information about the build-dev mailing list