NoClassDefFoundError org/jfree/util/PublicCloneable

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Fred
Posts: 38
Joined: Sat Dec 12, 2015 4:57 pm
antibot: No, of course not.

NoClassDefFoundError org/jfree/util/PublicCloneable

Post by Fred » Wed Apr 13, 2016 9:03 pm

All,

I've seen the several post that speak to putting the jcommon jar file in the classpath.
However, this is in a OSGi environment using Apache/Karaf. Gradle is used to build
the bundles and install them accordingly.

I've reviewed the MANIFEST.MF file from using Eclipse to generate a osg-compatible
manifest file, to include import package (dependencies) for both jfreechart and jcommon .jar
files.

Suggestions?

Thanks

Fred

Fred
Posts: 38
Joined: Sat Dec 12, 2015 4:57 pm
antibot: No, of course not.

Re: NoClassDefFoundError org/jfree/util/PublicCloneable

Post by Fred » Wed Apr 13, 2016 9:39 pm

I probably should have included that a separate feature (bundle) has been setup with
jcommon and jfreechart loading prior to the primary tool jar that relies on them to be loaded.

The feature is loaded after the application starts in Karaf via features:install chartTools

There appears to be a call from org.jfree.ui.ApplicationFrame.<init>(ApplicationFrame.java:65)
and the point in the code where it fails is when issuing "super()"

Locked