Aspose.BarCode support for Java 11



We are upgrading our application to Java 11 and we are facing the following issue:

The application fails to start with error:

Caused by: java.lang.NoClassDefFoundError: sun/reflect/Reflection
at com.aspose.barcode.License.setLicense(Unknown Source)

We use the Aspose.BarCode version: 18.10.1
We use the following snippet:

com.aspose.barcode.License asposeBarcodeLicense = new com.aspose.barcode.License();

Is Java 11 supported? If Aspose does not support Java 11, when should we be expecting a new version of Aspose to provide support?



  1. In the configuration of License of Aspose.BarCode, it seems that the setLicense(String licenseName) method uses the Reflection.getCallerClass(int) method, which has been removed permanently from Java
  2. It seems that Aspose.PDF and Aspose.Words works fine.



Thank you for contacting Aspose Support.
This issue is already logged in our issue tracking system as BARCODEJAVA-598 and is expected to be fixed with the release of Aspose.BarCode for Java 18.11. We will update you here as soon as additional information is available.