This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Accessing reports gives net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException 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 "Accessing reports gives net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException" Watch "Accessing reports gives net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException" New topic
Author

Accessing reports gives net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Hello.
I have created an application and converted it into jar file

Here is the structure of jar (which i got after extracting it)
MyApp
META-INF
org
----nit
----other directories
required libraries and jars
.jasper files

Here is the codes :

MyiReportViewer.java


MainUI.java

[/code]


kunal
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19728
    
  10

java.io.FileNotFoundException: List Of Staffs.jasper


This is quite straightforward. There was no file by that name in the current working directory when you ran the application.
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks Paul Clapham for your reply. I have mentioned the structure of jar and location of all .jasper files.


I have also tried with "/List Of Staffs.jasper" in the code
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Accessing reports gives net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException
 
It's not a secret anymore!