Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

前端 未结 19 2217
清酒与你
清酒与你 2020-12-10 01:32

I\'m trying to display my reports on the browser , but I keep getting this error:

\"enter

19条回答
  •  执念已碎
    2020-12-10 02:08

    This is a missing jars in the class path issue.

    I had this issue and found that with by adding the missing jars to the class path it resolved the issue.

    From the below article java.dzone.com article I found that the minimal jars necessary are...Now The versions numbers have changed but with these libraries only I managed to get it working.

    • jasperreports-2.0.4.jar
    • commons-digester-1.7.jar
    • commons-collections-2.1.jar (commons-collections.jar)
    • commons-logging-1.0.2.jar
    • commons-beanutils.jar
    • iText-2.0.7.jar (used infor PDF exporting)

提交回复
热议问题