java.awt.HeadlessException:null

Hi,


I am trying to work with the
attached presentation but I’m getting a java.awt.HeadlessException: null with a
simple read and save operation using the following lines of code:


Presentation pres = new
Presentation(“LloydsFinancialResultspresentation2004.pptx”, new
LoadOptions());

final ByteArrayOutputStream
pptStream = new ByteArrayOutputStream();

pres.save(pptStream, SaveFormat.Pptx,
new SaveOptionsFactory().createPptxOptions());


I am using 16.12.0 version of
slides for java.

My environment details: Oracle
Linux 5 (Intel 64-bit)

Java version: 1.7.0_85(default)

Java SE version: 1.7.0_85
(default)


I am running into this issue when I have the following property set: <span style=“color: rgb(34, 34, 34); font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif; font-size: 12px;”>-Djava.awt.headless=true

<span style=“color: rgb(34, 34, 34); font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif; font-size: 12px;”>

Could you please look into this and provide a solution?

Thanks,
Monica

Hi Monica,

I have worked with presentation file shared by you using Aspose.Slides for JAVA 16.12.0 and unable to observe the issue on windows 10 environment. However A ticket with ID SLIDESJAVA-35854 has been created in our issue tracking system to investigate the issue in details. This thread has been associated with the ticket so that we may share the notification with you once issue will be fixed.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-35854) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.