7144064: [macosx] "Could not find class" error in JTree's ctor when called in headless mode
authorkizune
Thu, 24 May 2012 15:11:24 +0400
changeset 12818 886414b7d5af
parent 12817 5b0f3d1b8cfe
child 12819 26ca9ac71349
7144064: [macosx] "Could not find class" error in JTree's ctor when called in headless mode Reviewed-by: art, leonidr
jdk/src/solaris/native/java/lang/java_props_md.c
--- a/jdk/src/solaris/native/java/lang/java_props_md.c	Wed May 23 12:37:31 2012 +0800
+++ b/jdk/src/solaris/native/java/lang/java_props_md.c	Thu May 24 15:11:24 2012 +0400
@@ -406,7 +406,7 @@
 #ifdef MACOSX
             break;
         default:
-            sprops.graphics_env = "sun.awt.HeadlessGraphicsEnvironment";
+            sprops.graphics_env = "sun.java2d.HeadlessGraphicsEnvironment";
             break;
     }
 #endif