I got the license and following the docs to set license as following
License barcodeLic = new License();
String licFileName = System.getProperty(ApplicationContainer.BARCODE_LICENSE_FILENAME);
try{
barcodeLic.setLicense(licFileName);
}catch(Exception e)
e.printStackTrace();
}
I got above exception.
The license file name seems a little bit weird to me - Aspose.BarCode.lic.xml, I'm not sure if it is the problem.
One more question, do I need to set license every time when the barcode generated? or I could do it once when application server start? That would be much helpful if you could post/send me some sample code.
Thanks,
Dorothy