This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to define jars in classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "how to define jars in classpath" Watch "how to define jars in classpath" New topic
Author

how to define jars in classpath

Raymond Lim2
Greenhorn

Joined: Mar 07, 2001
Posts: 5
If I have a folder that has multiple .jar files inside
Is it possible to set the classpath with one declaration i.e.
set classpath=c:\jar\*.*;
instead of:
set classpath=c:\jar\jar1.jar; c:\jar\jar2.jar;etc...
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
No, but with any Java 2 system, you can put any jars you like in the lib/ext directory of your JRE and they will automatically be picked up as if ther are in the classpath. This is how I load most of my jars.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
Raymond Lim2
Greenhorn

Joined: Mar 07, 2001
Posts: 5
Thanks much -- Sherrif Carver
 
I agree. Here's the link: jrebel
 
subject: how to define jars in classpath
 
Similar Threads
Java API for XML - Install and run probs
Executing jar file - Urgent (Max Help)
Configuring JDK for Servlets
Classpath in Command line
database connectivity