Jump to content
We've recently updated our Privacy Statement, available here ×

Deploy as one jar


andhjo

Recommended Posts

Hello everyone,

 

I would like to deploy my reports in one jar file,

because I think that all jars should allways be selfcontained.

 

I do have some problem access my reportfiles from my java class

and have struggeling with the classloaders.

 

I was able to point out my masterreport by

Print.class.getResource("../../reportfiles/myReport.jrxml");

from my se.xchange.kontantguide.Print class.

but it will break in deployment.

 

Another thing is the subreports that are referenced from my master report by

"subreport.jasper". This will also break

 

Is there anyone who knows where i can find some example of how to arcive this.

 

I know it depends on how your structure is of the projekt

 

All answer or ideas are most welcome

Regards

 

Andreas

Link to comment
Share on other sites

  • 6 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...