[英]DynamicReports won't work when exported to a runnable jar
I coded this app that uses dynamic reports. 我编写了这个使用动态报告的应用程序。
I work with eclipse, and everything worked fine when I was working on eclipse. 我使用eclipse,当我使用eclipse时,一切工作正常。
today, I exported it to a runnable jar in order to implement it, my app works fine, until I try to generate a report, than it just gets stuck and do nothing. 今天,我将其导出到可运行的jar中以实现它,我的应用程序运行良好,直到尝试生成报告为止,否则它只会卡住而无所事事。
if I look at the console window, its just stops here : 如果我查看控制台窗口,它就在这里停止:
log4j:WARN No appenders could be found for logger (net.sf.jasperreports.extensions.ExtensionsEnvironment).
log4j:WARN Please initialize the log4j system properly.
on eclipse I always had these messages , and than the report launched. 在月食时,我总是收到这些消息,然后发布报告。
any ideas ? 有任何想法吗 ? please help.
请帮忙。
thanks Dave. 谢谢戴夫。
in the export menu I used "copy required libraries into a sum-folder.... instead of using "package required libraries... 在导出菜单中,我使用“将所需的库复制到总文件夹中...。”而不是使用“打包所需的库...”。
now it works, I'm not really sure why, but it works :) 现在它可以工作了,我不确定为什么,但是它可以工作:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.