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

Free Support Forum - aspose.com

ClassNotFoundException: org.testng.Assert

I have very similar problem like in post:
NoClassDefFoundError when building with log4j library
but in Aspose Barcode. I got error:

Caused by: java.lang.NoClassDefFoundError: org/testng/Assert
at com.aspose.internal.a.e.a(Unknown Source)
at com.aspose.internal.f.a.a(Unknown Source)
at com.aspose.barcoderecognition.BarCodeReader$c.a(Unknown Source)
at com.aspose.barcoderecognition.BarCodeReader.(Unknown Source)
at com.aspose.barcoderecognition.BarCodeReader.(Unknown Source)


Thank you for bringing this to our knowledge.

Please give a try to our latest version of Aspose.BarCode for Java v4.4.0. If your problem persists with latest jars then please share your sample project for our review. We will investigate the cause and provide the fix as soon as possible.


Yes, I used version 4.4.0. If in classpath exist log4j (I tested with version 1.2.16) I get that error. I have to add TestNG (version 6.3.1) to classpath in order to resolve problem.


Thank you for the further information.

I have logged this problem in our tracking system under ticket Id BARCODJAVA-33120. We will soon look into this matter and will keep you posted with updates.


The issues you have found earlier (filed as BARCODJAVA-33120) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.