Class Path Problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
Sloan
Posts: 3
Joined: Sun Mar 19, 2006 9:33 pm

Class Path Problem

Post by Sloan » Thu May 25, 2006 1:05 am

Sorry to bug y'all with what is probably an elementary question, but it's driving me nuts.

I am attempting to create an executable .jar file which references JFreeChart classes. My directory structure is as follows:

Code: Select all

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

Code: Select all

  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.

Any ideas?

Thanks in advance for any suggestions.

Sloan
Posts: 3
Joined: Sun Mar 19, 2006 9:33 pm

Post by Sloan » Thu May 25, 2006 12:28 pm

Got it. Did not have my Class-Path directory specified correctly. Just needed some sleep, I guess.

Thanks anyway.

Post Reply