This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes classpath setting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classpath setting" Watch "classpath setting" New topic

classpath setting

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
hi guys

i want to set group of jar files in classpath which is residing in differnt folder

i want to do this without using any IDE's

i want to know what are the possible ways to do this using my command prompt

looking for your replies
arulk pillai
Ranch Hand

Joined: May 31, 2007
Posts: 3359
type java -help in a command prompt and you should see -cp & -classpath to set the jars. these jars will be separate by ; in DOS and : in UNIX. If you are using Java 6+ you can just provide the folder names. Otherwise need to include individual jars.

c:\>java �cp c:/myProject
c:\>java -classpath c:/myProject/client.jar

[] | [Java job hunting know how] | [Java resumes]
Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
thanks arulk

for your reply

i want to know what java 6+ represents
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: classpath setting
It's not a secret anymore!