License for both java barcode and pdf

I need to manipulate pdfs and also barcode them and so I need to set the license for both com.aspose.barcode.License, and com.aspose.pdf.License. This does not work as the 2 imports with the same name result in a name collision.

barcode-generator/src/main/java/com/medhok/mm/utils/barcode/BarcodingService.java:[22,0] error: a type with the same simple name is already defined by the single-type-import of License

@MEDHOK,

We have evaluated the issue at our end and are unable to notice the issue mentioned by you. Lines of code are given below for your kind reference. Please try again with latest version of Aspose.BarCode for Java. In case the issue persists, forward us the details along with sample code snippet. We will look into it and update you about our findings.

CODE:

 com.aspose.barcode.License license = new com.aspose.barcode.License();
    license.setLicense("...\\lic\\Aspose.Total.Java.lic");
    
    com.aspose.pdf.License _license = new com.aspose.pdf.License();
    _license.setLicense("...\\lic\\Aspose.Total.Java.lic");