IntelliJ Java IDE
The moose likes Ant, Maven and Other Build Tools and the fly likes Please help me simple example using Class-Path Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply locked New topic
Author

Please help me simple example using Class-Path

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 756
I am trying to include a library jar file into my project jar . I know, I need to set Class-Path, but I have tried lots of times, it doesn't work, still can't not find library jar file.

Anybody can help me, just give me a very simple example using Class-Path ?

Thanks
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
Could you describe your project's directory structure (mainly where the project JAR file and the library JAR file are located relative to each other) and post the snippet of your Ant script where you create the project JAR file?


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 756
actually I post here before.

http://www.coderanch.com/t/107651/tools/MySQL-ant-not-find-driver

Thanks
 
 
subject: Please help me simple example using Class-Path
 
Threads others viewed
building the classpath by reading in all jars in the lib dir
Junilu, Ian, Peter and others pls help
Help need with import file in Netbeans
How do you include libraries (JMF specifically)?
ant conf file - where to add external libs
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com