netbeans 7 上的 ireport 中预览时出错
我正在 net-beans 上开发项目,并且我已经成功安装了 netbeans 的 ireport 插件。之后,我在 ireport 上创建了简单的报告,但是当我尝试预览时,它给出了以下错误。
Compiling to file... C:\Users\Public\Documents\Nirmal\Project_Final_Nangi\Project_Final_Nangi\80%of Project\Copy of nadee_Final\src\project\report1.jasper
Error compiling the report java source!
java.lang.NoClassDefFoundError: Could not initialize class com.jaspersoft.ireport.designer.compiler.ExtendedJRJdtCompiler
at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:501)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
有人可以解释我该如何解决这个问题吗?
I am developing project on net-beans and I have successfully install the ireport plugin for netbeans. After that I have create simple report on ireport but when I try to preview it gave following error.
Compiling to file... C:\Users\Public\Documents\Nirmal\Project_Final_Nangi\Project_Final_Nangi\80%of Project\Copy of nadee_Final\src\project\report1.jasper
Error compiling the report java source!
java.lang.NoClassDefFoundError: Could not initialize class com.jaspersoft.ireport.designer.compiler.ExtendedJRJdtCompiler
at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:501)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Can someone explain how can I solve this problem ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还安装了 IREPORT 设计器吗?有时 XML 模式的 DTD 存在版本问题。
我建议在 IREPORT 设计器中编译报告模板,以确保它们确实编译为正确的 XML 格式。
Do you have the IREPORT designer installed as well? Sometimes there is a version problem withe the DTD of the XML schema.
I would recommend compiling the report templates within IREPORT desinger just to make sure they DO compile as a proper XML format.