Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jasper report - location of jrxml files

807589Dec 31 2007 — edited Jul 22 2008
I designed some reports with iReport / Jasper report. It all works fine while running it under the netbeans IDE, but once I generate a dist and start the application from the .jar file, the reports don't print. I guess it can't find the jrxml and the jasper files. I tried copying the files to various locarions - on the root, inside the .jar file in many different locations (in the root of the .jar, in the .class dir, in a report sub dir with in the class dir, in a sub dir inside the lib dir,. loose with in the lib dir....) and nothing works.
I tried marking the sub-report dir as ".\\reports\\" and also as ".\\" - nothing works...

Where and how should I include those files in the dist package??

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2008
Added on Dec 31 2007
10 comments
6,986 views