In my code, I use fop.jar to read pdf file but I get error from log file:
EXCEPTION]
java.lang.NoClassDefFoundError: org/apache/avalon/framework/configuration/ConfigurationException
at GetPagePdf.<init>(GetPayStubPdf.java:36)
in my code line 36:
private FopFactory fopFactory = FopFactory.newInstance();
I research on website, they answer I miss avalonframework.jar but i don't know how to use jar file. Please help me to give some ideas.
The Formatting Object project (fop.jar) has dependencies that must also be placed into your classpath. The class that is throwing the NoClassDefFoundError is part of the avalon-framework-api.jar and avalon-framework-impl.jar.
The dependencies as I know of them if you are using fop version 2.1
If you find all of these then put them into your classpath then you should be able to run FOP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With