I just downloaded Aspose.PowerPoint for Java version 1.4.1.0. When I ran it for the first time, this error message appeared:
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.(X11GraphicsEnvironment.java:134) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) at com.aspose.powerpoint.eh.(SourceFile:55) at com.aspose.powerpoint.TextFrame.else(SourceFile:691) at com.aspose.powerpoint.Shape.new(SourceFile:844) at com.aspose.powerpoint.Rectangle.new(SourceFile:384) at com.aspose.powerpoint.Shape.byte(SourceFile:979) at com.aspose.powerpoint.Presentation.case(SourceFile:2819) at com.aspose.powerpoint.Presentation.write(SourceFile:672) at com.ge.epcm.PPT.savePresentation(PPT.java:97) at com.ge.epcm.PresentationCreator.processPPTDocument(PresentationCreator.java:567) at com.ge.epcm.PresentationCreator.processRequest(PresentationCreator.java:192) at com.ge.epcm.PresentationCreator.createPowerPoint(PresentationCreator.java:140) at com.ge.epcm.PresentationCreator.(PresentationCreator.java:125) at com.ge.epcm.PresentationCreator.main(PresentationCreator.java:51) ^C204 bsed23:ePCM $
Notice that the exception occured during a call to Presentation.write, which is the last call my application makes to Aspose.PowerPoint.
When I unset DISPLAY or set it to something silly like "foo.bar:347.7765" it failed in the same way. However when I set to an actual X-Server running on my client system, it seemed to work ok, but I didn't see anything display. Should I have seen something?
Regardless, this is *not* an acceptable solution though because the Aspose.PowerPoint application is running on a server and it will not have an X-Server running.
Thanks for your request. Aspose.Words for Java does not have any external dependencies. So there is not such limitation in Aspose.Words for Java. Please see the following link to learn about system requirements of Aspose.Words for Java: