File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 3640

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
I agree. Here's the link:
subject: Class not found
It's not a secret anymore!