In order to use the license, please save the license file to some folder in your disk e.g. c:\Lic\Aspose.BarCode.JasperReport.lic. Call License.setLicense(filename) method and pass file name as an argument. After, this statement is called, your licensed will be set and no “Aspose.Demo” label will appear on top of the barcode image.
You need to call the setLicense() method only once per process/application.
The following code snippet sets the license for Aspose.BarCode for JasperReports.
// set license
License lic = new License();
lic.setLicense("C:\\ Lic\\Aspose.BarCode.JasperReports.lic");