Search code examples
javaeclipseswingexecutable-jardynamic-reports

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.

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.

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.


Solution

  • 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 :)