This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Class not found

 
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 would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!