This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Class not found" Watch "Class not found" New topic

Class not found

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636

I am getting following error,

jasperFile = �Item_List.jasper�;
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperFile, parameters, con);

net.sf.jasperreports.engine.JRException: Class not found when loading object from file : Item_List.jasper

How to solve this?


My blood is tested +ve for Java.
Mike Farnham
Ranch Hand

Joined: Sep 25, 2001
Posts: 76
Just a rough guess you might need to further clarify the path to the file.
It is unlikely that whereever you are running this code knows exactly where to locate the file you are specifying.

somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I think, some object in jasper report file not found or missing.

Java Developer, Thailand
Consider Paul's rocket mass heater.
subject: Class not found
Similar Threads
JasperReport Tool
? Using JasperReports and IReport
Servlet can't find the specified path