aspose file tools*
The moose likes Other Open Source Projects and the fly likes JFree Chart in iReport...help me! 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 "JFree Chart in iReport...help me!" Watch "JFree Chart in iReport...help me!" New topic
Author

JFree Chart in iReport...help me!

Izah Marzuki
Greenhorn

Joined: Jan 22, 2007
Posts: 7
Hi...
I tried to embed chart which coded in JFree Chart into iReport.
Somehow after I tried to execute the sample provided by jasper report, i've got error :

Error filling print... Error loading scriptlet class : JFreeChartScriptlet
net.sf.jasperreports.engine.JRException: Error loading scriptlet class : JFreeChartScriptlet at net.sf.jasperreports.engine.fill.JRFillDataset.createScriptlet(JRFillDataset.java:452) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:592) at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:864) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:702) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:660) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:808) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: JFreeChartScriptlet at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:90) at net.sf.jasperreports.engine.fill.JRFillDataset.createScriptlet(JRFillDataset.java:447)


I don't know what to do so please help me


-->iMo<--
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Have you tried different versions of iReport?


SCJP, SCJD, SCWCD, SCBCD
Izah Marzuki
Greenhorn

Joined: Jan 22, 2007
Posts: 7
I tried version 1.3
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
try other versions like 1.1 or 1.2.

Could it be a classpath problem in iReport?

Originally posted by Izah Marzuki:
Caused by: java.lang.ClassNotFoundException: JFreeChartScriptlet at java.net.URLClassLoader$1.run(Unknown Source) ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFree Chart in iReport...help me!