aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing reports gives net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException