JFreeChart in an Eclipse RCP applciation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yogiyogi
Posts: 4
Joined: Fri May 08, 2009 6:57 am

JFreeChart in an Eclipse RCP applciation

Post by yogiyogi » Mon May 18, 2009 6:53 am

I am using JFreeChart in an RCP application and I get this error -

java.lang.NoClassDefFoundError: org/jfree/util/PublicCloneable

I have created an OSGI bundle wrapper for these dependencies

jfreechart - Version 1.0.11
jcommon - Version 1.0.14

Can you pls let me know whether the error is with the version?

uli
Posts: 24
Joined: Sat Mar 14, 2009 3:22 pm
Location: Berlin

Re: JFreeChart in an Eclipse RCP applciation

Post by uli » Mon May 18, 2009 6:17 pm

I've never heared about the class 'PublicCloneable'.
Is it necessary to use an OSGI bundle wrapper?

I included JFreeChart like this:

* copy all jar files from the lib folder of JFreeChart to the root directory of your project
* open eclipse
* open plugin.xml of your project
* go to the tab folder 'Runtime'
* click 'Add...' in the 'classpath' section
* select all jar files copied above

HTH

Locked