简体   繁体   English

导出到可运行的jar时,DynamicReports将不起作用

[英]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.

相关问题 不会打开从 eclipse Mac OS 导出的可运行 jar - Won't open runnable jar exported from eclipse Mac OS 为什么从Eclipse导出的可运行JAR不起作用? - Why doesn't a runnable JAR exported from Eclipse work? 项目在Eclipse中正常运行,但导出到可运行的jar时无法正常运行 - Project runs normal in Eclipse but doesn't when exported to a runnable jar 导出为 JAR 时不会加载资源 - Resource won't load when exported as a JAR RXTX在一个可运行的jar文件中 - 为什么它不起作用? - RXTX in a runnable jar file - why won't it work? 可运行的JAR文件不会 - Runnable JAR file won't 在运行时编译Java文件可在Eclipse上运行,但不能从导出的可运行jar文件中运行 - Compiling java file at runtime works on eclipse but doesn't work from an exported runnable jar file 为什么Spring项目的导出的可运行JAR在另一个系统中不起作用? - Why doesn't an exported runnable JAR of a Spring project work in another system? 导出时从另一个Jar运行一个Jar不起作用 - Running a Jar from another Jar doesn't work when exported setIconImage仅在eclipse中起作用,当导出为可运行的jar文件时不起作用 - setIconImage only works in eclipse, doesnt work when exported as runnable jar file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM