my dog learned polymorphism*
The moose likes Other Open Source Projects and the fly likes reports(iReport) folder doesn't goes into jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "reports(iReport) folder doesn Watch "reports(iReport) folder doesn New topic
Author

reports(iReport) folder doesn't goes into jar file

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I have created an application in myeclipse. I have used iReport for generating reports. It works fine in myeclipse. But, now i have converted the app into jar. And, none of the report opens. On extracting the jar, i found that reports folder is missing. The reports folder contains .jasper files. I created jar through myeclipse itself.

This is the structure

MyApp
----src
---------org.nit.forms
---------org.nit.dao
............
----lib
----reports

On extracting the jar i found org folder (containing packages), META-INF folder and required jar, but no reports folder needed to generate reports

What should i do?


kunal
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
After googling i found a way where all files (.jasper) present in the reports folder is added to the jar. On extracting, i found that jasper files (files which where in reports folder) are placed with other jars. But, still the report system doesn't works. It shows blank frame.
In my code the location of jasper files is given as reports/abc.jasper
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
No reply yet
 
GeeCON Prague 2014
 
subject: reports(iReport) folder doesn't goes into jar file