Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Class not found  RSS feed

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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?

Reg,
Chetan
 
Mike Farnham
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chetan,
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.

Cheers,
Mike
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, some object in jasper report file not found or missing.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!