wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes java from the command line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java from the command line" Watch "java from the command line" New topic

java from the command line

sonia pandit
Ranch Hand

Joined: Apr 19, 2008
Posts: 137
How do i indicate multiple jar files in the classpath for running java from the command line:

Is this correct?

or are each of the paths separated my commas?

Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

or are each of the paths separated my commas?

No, they are separated by semi-colons. (On unix, by colons)

[My Blog]
All roads lead to JavaRanch
Don't get me started about those stupid light bulbs.
subject: java from the command line
Similar Threads
How to choose java version at run time
how to pass the arguments to the main class ...
Running the jar command from a Java file
to Mikalai Zaikin..
Problem when creating / running a jar file