This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 | 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 "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: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Raymond Lim2
Greenhorn

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