java - getting exception .NoClassDefFoundError: com/itextpdf/text/log/CounterFactory -
java - getting exception .NoClassDefFoundError: com/itextpdf/text/log/CounterFactory -
i trying create pdf/a document using itext , java next code:
pdfawrite author = pdfawriter.getinstance(mydoc, mystream, pdfaconformancelevel.pdf_a_1a);
but maintain getting exception:
java.lang.noclassdeffounderror: com/itextpdf/text/log/counterfactory @ com.itextpdf.text.pdf.pdfawriter.<init>(pdfawriter.java:210) @ com.itextpdf.text.pdf.pdfawriter.getinstance(pdfawriter.java:86)
this pom.xml
<dependency> <groupid>com.itextpdf</groupid> <artifactid>itextpdf</artifactid> <version>5.5.3</version> </dependency> <dependency> <groupid>com.itextpdf</groupid> <artifactid>itext-pdfa</artifactid> <version>5.5.3</version> </dependency>
can tell should prepare problem?
thanks
i similiar exceptions when have said class in more 1 jar. maybe should check classpath duplicates. maybe different versions of same library coexist. if you're using eclipse, have @ 'dependency hierarchy' view of pom , seek locate duplicate.
java pdf itext pdfa
Java - Getting Exception .Noclassdeffounderror:
ReplyDeleteCom/Itextpdf/Text/Log/Counterfactory - >>>>> Download Now
>>>>> Download Full
Java - Getting Exception .Noclassdeffounderror:
Com/Itextpdf/Text/Log/Counterfactory - >>>>> Download LINK
>>>>> Download Now
Java - Getting Exception .Noclassdeffounderror:
Com/Itextpdf/Text/Log/Counterfactory - >>>>> Download Full
>>>>> Download LINK lJ