Free Support Forum - aspose.com

How to Save in a Linux OS?

Hi, I am having problems saving my Excel File on a Linux OS.

I have made previous saves on a Windows OS and it ran smoothly.

Here is my code (saving in Linux):

String fileName = /opt/tomcat/temp/OPT-Top Die-x013753320101006105252.pdf
workbook.save(fileName, FileFormatType.PDF);

And here is the error message:

java.lang.NullPointerException
at com.aspose.cells.a.a.f.m.o(Unknown Source)
at com.aspose.cells.a.a.f.m.(Unknown Source)
at com.aspose.cells.a.a.a.i.c(Unknown Source)
at com.aspose.cells.a.a.g.l.a(Unknown Source)
at com.aspose.cells.a.a.g.w.c(Unknown Source)
at com.aspose.cells.a.a.g.w.a(Unknown Source)
at com.aspose.cells.a.a.g.w.b(Unknown Source)
at com.aspose.cells.a.a.g.w.a(Unknown Source)
at com.aspose.cells.a.a.g.w.(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.opt_traveler.actions.ExportToPDF.processRequest(ExportToPDF.java:389)


Thanks in advance.

Hi,

Which version of the product you are using? We recommend you to try our latest version v2.4.1 if it works fine.

Could you also paste your sample code with template file(if you have) here. We will try to setup the Linux env. to test your case soon.

Thank you.