You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/09/12 16:43:27 UTC

DO NOT REPLY [Bug 36614] New: - Can't connect to X11 window server ...

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36614>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36614

           Summary:  Can't connect to X11 window server ...
           Product: Batik
           Version: 1.5
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: SVGGraphics2D
        AssignedTo: batik-dev@xml.apache.org
        ReportedBy: bjakob@de.ibm.com


On Red Hat Enterprise Linux V9.3 (JRE 1.4) I run a GUI application, when 
performing Finish, the following code will run:

   DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation();
   Document document = domImpl.createDocument(null, "svg", null);
   svgGraphics = new SVGGraphics2D(document);

SVGGraphics2D throws the following exception:

java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment
        at java.lang.Class.initialize(Class.java:318)
        at java.lang.Class.forNameImpl(Native Method)
        at java.lang.Class.forName(Class.java:116)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment   
(GraphicsEnvironment.java:91)
        at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1073)
        at org.apache.batik.svggen.SVGGraphics2D.<init>(Unknown Source)
        at org.apache.batik.svggen.SVGGraphics2D.<init>(Unknown Source)
        at com.ibm.wbit.reporting.imageutility.BToolsDraw2dSvgGraphics.<init>
(Unknown Source)


Note: the X11 window server is running and I can start a GUI application, so 
the DISPLAY variable is set fine and the authorization is correct.

My application runs without problems on Windoxs XP and Suse Linux Enterprise 
Server.

If I set java.awt.headless="true", then all works fine -> no Error/Exception 
will be thrown. But I really do not know why it works with this JVM setting, 
because I do not have headless Java -> I have a GUI application. So I think, 
this could not be the solution - propably a workaround, but hen I need a 
description for this.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org