aspose file tools*
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
Author

Set multiple CLASSPATH?

Gary kwlai
Greenhorn

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

I need to use the java ones and weka.jar

thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30947
    
158

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Gary kwlai
Greenhorn

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
Sheriff

Joined: Oct 13, 2005
Posts: 39865
    
  28
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Set multiple CLASSPATH?