I'm pretty sure this is an elementary question, but it's driving me nuts.
I am attempting to create an executable .jar file which references classes in other jars. My directory structure is as follows:
Development | | Jars (contains file "Search.jar") | | JFreeChart (contains files "jcommon1.0.1.jar" and "jfreechart1.0.1.jar") I create the file Search.jar from within the Development directory. In the manifest file for my Search.jar I have a line which reads Class-Path: Jars/JFreechart/jfreechart-1.0.1.jar Jars/JFreeChart/jcommon-1.0.1.jar When Search.jar runs, the application attempts to import "org.jfree.data.time.TimeSeries;".
This results in a NoClassDefFoundError: org.jfree.data.time.RegularTimePeriod.class
I cannot see that I am doing anything wrong in the specification of the Class-Path, but for some reason it won't load the JFree .jars it needs. I'm sure it must be something dumb I'm doing, but I can't seem to find it.