The Artima Developer Community
Sponsored Link

Java Answers Forum
Class Path (Manifest) Problem

2 replies on 1 page. Most recent reply: May 25, 2006 4:27 AM by Ken Sloan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Ken Sloan

Posts: 35
Nickname: sloan
Registered: Sep, 2003

Class Path (Manifest) Problem Posted: May 24, 2006 5:11 PM
Reply to this message Reply
Advertisement
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.

Any ideas?

Thanks in advance for any suggestions.


Ken Sloan

Posts: 35
Nickname: sloan
Registered: Sep, 2003

Re: Class Path (Manifest) Problem Posted: May 24, 2006 5:16 PM
Reply to this message Reply
I apologize for the format. I thought I had the html right.

The directory structure is
Development
     |
     |
   Jars (contains file "Search.jar")
       |
       |
     JFreeChart (contains files "jcommon1.0.1.jar" and "jfreechart1.0.1.jar")

Ken Sloan

Posts: 35
Nickname: sloan
Registered: Sep, 2003

Re: Class Path (Manifest) Problem Posted: May 25, 2006 4:27 AM
Reply to this message Reply
Got it. Did not have my Class-Path directory specified correctly. Just needed some sleep, I guess.

Thanks anyway.

Flat View: This topic has 2 replies on 1 page
Topic: Applet Servlet Communication Previous Topic   Next Topic Topic: How can i save in JPG an applet java that allows to draw

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use