License issue in Oracle Linux OS

Hi Team,


we are using the below code to read license.

String lic = “license …”;

InputStream licis = new ByteArrayInputStream(lic.getBytes(“UTF-8”));
License lics = new License();
lics.setLicense(licis);

this is working fine in windows and unix versions.

but it is not working in Oracle Linux Operating System. Could you please guide us.

Thanks,
EiSTechnlogies.

Hi,


Thanks for your query with some details.

Well, we firstly need to know whether you got any exception or without exception for setting license and you only got evaluation page for the generated file. If you got the exception, kindly give the exception message/details. If you got evaluation watermark sheet even you specify the licensing code, please make sure that the licensing code should be processed at least one time in the whole application life cycle.

Thank you.

Hi Team,


we did not got any exception for setting the license in Oracle Linux OS.

without license the excel file generated along with evaluation page.

this is production issue. Please give the suitable solution.

Thanks,
Eistechnologies.


Hi,

It looks like the licensing code is not processed . Please make sure that the licensing code should be processed at least one time in the whole application life cycle. If you still find the issue exception, kindly give us complete exception message/details here. We will check it soon.

Thank you.

Hi Team,


Thanks for quick response.

we did not get any exception while setting the license in Oracle Linux OS. simply skip the excel file generation.

could please tell me how to do this.

licensing code should be processed at least one time in the whole application life cycle.

Thanks,
EiSTechnologies.

Hi Team,


Any Update on this?

Thanks,
EiSTechnologies.

Hi,

ranjithgendhe:
licensing code should be processed at least one time in the whole application life cycle.

It means your licensing code should be processed before using any other API of Aspose.Cells for Java. For example, you may paste your licensing code @ some location e.g constructor the main class / program so it should be executed before any of the Aspose.Cells API is called.

Now come to your issue, I am afraid we have no idea about the reason of your issue. For your information, it is impossible that your code of setLicense() had been executed successfully and Aspose.Cells for Java still works in Evaluation mode. We think the only way we can recommend you to do is you simply create one resultant Excel file after setting the license to see whether an evaluation worksheet added to the generated Excel file or not. The sample code can be as following:
License lic=...;
lic.setLicense(...;
Workbook wb = new Workbook();
wb.save("out.xls");

Also, see the document for your reference on Licensing:

Thank you.