aspose file tools*
The moose likes Beginning Java and the fly likes 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException" Watch "net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException" New topic
Author

net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException

ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 39

sir i try call the jasper report but system give me this error






net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: \report\report2.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:79)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:232)



Thanks & Regards
Ayyappan
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

FileNotFoundException. It should give you a hint, doesn't it ? But I find it strange that the file reported ( \report\report2.jasper ) does not correspond to the file name in your source code (../report/report1.jasper). Is this the stack trace for this sample ?


[My Blog]
All roads lead to JavaRanch
ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 39
Christophe Verré wrote:FileNotFoundException. It should give you a hint, doesn't it ? But I find it strange that the file reported ( \report\report2.jasper ) does not correspond to the file name in your source code (../report/report1.jasper). Is this the stack trace for this sample ?


can you still elaborate clearly the solution for the Above same code ?what mistake is i making in the given code?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

FileNotFoundException = File Is Not Found = Check the path of your file.
If you use a relative path, make sure that the current directory is correct.
sun peter
Greenhorn

Joined: May 31, 2011
Posts: 1
I was stucked by the same problem. need help please
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException
 
Similar Threads
Same Jasper Report keeps opening
How to use Jasper Reports . Explain with Simple Examples
Struts and jasper report
file .jasper and jsp
simple jasper report in java without a database.