Problems installing jfree chart ClassNotFoundException

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
cchen
Posts: 1
Joined: Wed Feb 19, 2014 3:04 am
antibot: No, of course not.

Problems installing jfree chart ClassNotFoundException

Post by cchen » Wed Feb 19, 2014 3:15 am

Hi, I've tried everything I can think of and I am still getting a java.lang.ClassNotFoundException and java.lang.NoClassDefFoundError errors when I try to use JFreeChart. Here is the error:

2014-02-18 18:03:48,319 2111 [PluginLoader-savant.coverage-1.0.1] ERROR savant.plugin.PluginController - Unable to load Coverage Plugin
java.lang.NoClassDefFoundError: org/jfree/data/xy/XYSeries
at savant.coverage.CoveragePlugin.init(CoveragePlugin.java:128)
at savant.plugin.PluginController.initGUIPlugin(PluginController.java:235)
at savant.plugin.PluginController.loadPlugin(PluginController.java:304)
at savant.plugin.PluginController.access$000(PluginController.java:48)
at savant.plugin.PluginController$LoaderThread.run(PluginController.java:409)
Caused by: java.lang.ClassNotFoundException: org.jfree.data.xy.XYSeries
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more

I am using jfreechart-1.0.17.jar and jcommon-1.0.21.jar. I also added in all the other extra jars that came with the .zip file. I have downloaded it twice, linked it to different locations (but not duplicates), used relative/absolute paths, tried renaming the jars. I am using Netbeans and I also tried clearing the cache.

I know this must be a CLASSPATH error but here is a portion of my projects.properties for the Netbeans project:

file.reference.commons-logging-1.1.1.jar=lib/commons-logging-1.1.1.jar
file.reference.jcommon-1.0.21.jar=lib/jcommon-1.0.21.jar
file.reference.jfreechart-1.0.17-experimental.jar=lib/jfreechart-1.0.17-experimental.jar
file.reference.jfreechart-1.0.17-swt.jar=lib/jfreechart-1.0.17-swt.jar
file.reference.jfreechart-1.0.17.jar=lib/jfreechart-1.0.17.jar
file.reference.jfreesvg-1.4.jar=lib/jfreesvg-1.4.jar
file.reference.jide-common.jar=lib/jide-common.jar
file.reference.jide-dock.jar=lib/jide-dock.jar
file.reference.junit-4.11.jar=lib/junit-4.11.jar
file.reference.sam-1.31.jar=lib/sam-1.31.jar
file.reference.Savant.jar=lib/Savant.jar

javac.classpath=\
${file.reference.Savant.jar}:\
${file.reference.commons-logging-1.1.1.jar}:\
${file.reference.jide-dock.jar}:\
${file.reference.sam-1.31.jar}:\
${file.reference.jide-common.jar}:\
${file.reference.jcommon-1.0.21.jar}:\
${file.reference.jfreechart-1.0.17-experimental.jar}:\
${file.reference.jfreechart-1.0.17-swt.jar}:\
${file.reference.jfreechart-1.0.17.jar}:\
${file.reference.jfreesvg-1.4.jar}:\
${file.reference.junit-4.11.jar}

I don't know where else to check for CLASSPATH, I have spent way too much time trying to figure this out. I have added the other .jars successfully before the same way but for some reason jfreechart with jcommon is not working :( :( Please any help would be greatly appreciated!

Locked