We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error when added license file

I have added the license file “Aspose.Cells.lic” in the location where the Aspose jar “aspose-cells-8.8.0.jar” is located. But I am getting the error -
AbstractLoggingWriter.write() - com.aspose.cells.CellsException: Cannot find license file: Aspose.Cells.lic

Hi,


Thanks for your posting and using Aspose.Cells.

Please try giving the full (i.e. absolute) path of your license file. It should then work fine. Later on, you could also try giving the relative path.

The following sample code applies the license by using the absolute path of license file. Please change it as per your needs.

Java
//Absolute path of your license file
String licPath = “F:/Download/Aspose.Total.Java.lic”;

//Set the license
com.aspose.cells.License lic = new com.aspose.cells.License();
lic.setLicense(licPath);

//Create workbook
Workbook wb = new Workbook();

//Save the workbook
wb.save(“C:/myTemp/out.xlsx”);