License problem with Aspose.Cells for Java

Hello, I purchased Aspose.Total for Java, and I am having licensing problems specifically with Aspose.Cells.

I’ve followed the instructions in your Aspose.Cells for Java licensing documentation and put the license file (named Aspose.Total.Java.lic) in the same directory as Aspose.Cells.jar.

I am setting the license with this code, but it throws a FileNotFoundException:

com.aspose.cells.License excelLicense = new com.aspose.cells.License();
java.io.FileInputStream is = new java.io.FileInputStream (“Aspose.Total.Java.lic”);
try {
excelLicense.setLicense (is);
}
finally {
if (is != null)
is.close();
}

The licensing does work if I explicitly specify the filepath, but according to your documentation, only the filename needs to be provided if the license file is in the same directory as the Aspose.Cells.jar.

What am I doing wrong, or is your documentation inaccurate?

Hi,

Thank you for your info .The document is only for .NET, we will change it.

If you want to only use the file name, you should put the file to Working directory.