File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Set multiple CLASSPATH? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Set multiple CLASSPATH?" Watch "Set multiple CLASSPATH?" New topic

Set multiple CLASSPATH?

Gary kwlai

Joined: Dec 24, 2008
Posts: 12
what are the syntax to set multiple classpath?

I need to use the java ones and weka.jar

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

At the command line, you separate them with a delimiter. Semicolon on Windiows; colon on other OS.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Gary kwlai

Joined: Dec 24, 2008
Posts: 12
Forgot to mention, what is the path I need to type in to set the classpath under Vista if I want to use java or javac ? I am using the latest version of JDK
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46334
You need to explore your C: drive. Try C->Program Files->Java->jdk1.6.0_something->bin, and you shoudl find about 30 programs including javac.exe, java.exe, appletviewer.exe, etc. Then you write down all the names of the folders starting with C and ending with bin, something like
C:\Program Files\java\jdk1.6.0_12\bin

And that is the path element you need.
I agree. Here's the link:
subject: Set multiple CLASSPATH?
jQuery in Action, 3rd edition