We use aspose-barcode-8.2.0.jar on windows and linux. The license file Aspose.BarCode.Java.lic is copied into the WEB-INF/lib where also the jar file is located. The license file is 30 day trial license.
When the barcode is recognized or created with setting the license with the following statements:
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>com.aspose.barcode.License license = new com.aspose.barcode.License();
license.setLicense(“Aspose.BarCode.Java.lic”);
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>The following exception is thrown:
license.setLicense(“Aspose.BarCode.Java.lic”);
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>The following exception is thrown:
java.lang.Exception: Failed to set license. Details: Cannot find license ‘Aspose.BarCode.Java.lic’.
This exception happens on linux only, on windows it works fine. Also in the same tomcat (on linux) also Aspose
Words is used and there the license is set without problem.