Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No reply yet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic