Exception Slide.getThumbnail in linux Server

Hi,

ich use Aspose.Slides for java (Version 2.2), my code in Windows is fine, but in linux i got exception:
Exception in thread “main” java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:203)
at com.aspose.slides.TextLayout.measureString(SourceFile:1125)
at com.aspose.slides.TextLayout.layoutText(SourceFile:255)
at com.aspose.slides.TextLayout.(SourceFile:126)
at com.aspose.slides.TextFrame.do(SourceFile:755)
at com.aspose.slides.TextFrame.do(SourceFile:102)
at com.aspose.slides.Rectangle.do(SourceFile:137)
at com.aspose.slides.Slide.getThumbnail(SourceFile:1304)
at com.aspose.slides.Slide.getThumbnail(SourceFile:1125)
at PresentationInfoGenerator.generateImage(PresentationInfoGenerator.java:246)
at MainEntry.main(MainEntry.java:16)

How can i do?

Thanks

Hi Sai,

I have observed the issue specified by you. Can you please share some more details about which JDK you are using and the source presentation data with us, so that we can investigate the things on our end.

We are sorry for your inconvenience,

Hi,

Now with “xvfb-run java” is OK.

Thanks.

Hi,

Its really good that you have been able to rectify the issue by your self.

Thanks and Regards,