We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Dependency to testng in aspose-barcode-4.5.0?

on creation of QRCodes with aspose-barcode-4.5.0.jar we get a NoClassDefFoundException for org.testng.Assert?:

java.lang.NoClassDefFoundError: org/testng/Assert
at com.aspose.internal.barcode.e.e.a(Unknown Source)
at com.aspose.internal.barcode.k.a.a(Unknown Source)
at com.aspose.barcode.O.a(Unknown Source)
at com.aspose.barcode.ax$a.a(Unknown Source)
at com.aspose.barcode.ax.N(Unknown Source)
at com.aspose.barcode.ax.a(Unknown Source)
at com.aspose.barcode.j.O(Unknown Source)
at com.aspose.barcode.j.L(Unknown Source)
at com.aspose.barcode.j.M(Unknown Source)
at com.aspose.barcode.BarCodeBuilder.generateBarCodeImage(Unknown Source)
I searched the forum and found that this has been fixed in 4.4.1, but I still get this error with 4.5.0

Regard Tobias
Hi Tobias,

Thank you for your inquiry. I found this issue under BARCODJAVA-33120. I would like to update you that in this issue, customer was using log4j (version 1.2.16) with our Aspose.BarCode for Java (v4.4.0) product.
Code snippet:

Logger logger = Logger.getLogger(Main.class);
public static void main(String[] args) throws Exception
BufferedImage image = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB);
BarCodeReader reader = new BarCodeReader(image, BarCodeReadType.getCode39Standard());
Now, I am unable to reproduce it with our latest version of Aspose.BarCode for Java v5.0. So please try it and let me know how it goes on your side. If the problem persist then please share exact scenario details. We will take a closer look and guide you accordingly.

Thanks for your answer we will try aspose-barcode 5.0.0

Kind regards Tobias

Hi Imran,
Aspose.BarCode for Java v5.0 does not throw theNoClassDefFoundError.

Kind Regards Tobias

Hi Tobias,

Thanks to confirm about. It's great that the exception did not occur with latest Aspose.BarCode for Java v5.0. If you require any assistance, please feel free to let us know. We are always glad to help you.