Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Getting DataMatrix Barcode from image results in "java.lang.NoClassDefFoundError: com/sun/servicetag/UnauthorizedAccessException"

$
0
0
Hi,

it seems that detecting DataMatrix barcode from an image results in an exception:

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/servicetag/UnauthorizedAccessException
    at com.aspose.internal.barcode.D.a.a(Unknown Source)
    at com.aspose.internal.barcode.D.a.a(Unknown Source)
    at com.aspose.internal.barcode.D.a.a(Unknown Source)
    at com.aspose.internal.barcode.D.d.a(Unknown Source)
    at com.aspose.internal.barcode.D.d.a(Unknown Source)
    at com.aspose.internal.barcode.D.d.a(Unknown Source)
    at com.aspose.internal.barcode.D.d.a(Unknown Source)
    at com.aspose.internal.barcode.W.L.c(Unknown Source)
    at com.aspose.internal.barcode.W.L.a(Unknown Source)
    at com.aspose.internal.barcode.W.ac.a(Unknown Source)
    at com.aspose.barcoderecognition.c.D(Unknown Source)
    at com.aspose.barcoderecognition.c.j(Unknown Source)
    at com.aspose.barcoderecognition.BarCodeReader.read(Unknown Source)

Here is my code for reproducing the problem. What is to do?
  1. Update static member IMAGE_OK, IMAGE_FAIL and LICFILEPATH  in TestAsposeBarcode.java
  2. Start TestAsposeBarcode.java
Result:
  • Barcode in IMAGE_OK will be detected
  • Barcode in IMAGE_FAIL will fail with exception

Thanks a lot
Best regards
Matthias

Viewing all articles
Browse latest Browse all 3131

Trending Articles