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

Including all JARs in a directory?

Barry Burd
Ranch Hand

Joined: Jun 18, 2003
Posts: 118

The last time I checked, there was no easy way (without ANT) to include all jars in a particular directory in the classpath. For instance, you could say
but you couldn't say
You could put all jars into a subdirectory of your Java home directory, but that may not be practical. So my question is, am I correct in assuming that there's still no easy way to tackle this problem? Thanks.

Java For Dummies, 6th Edition, Java Programming for Android Developers For Dummies
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
Hi Barry
Yes. There is no easy way of including all jar files in the classpath just by CLASSPATH attribute settings in javac and -cp in java....
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

Is the Java Extension Mechanism not sufficient for your needs?
Good Luck,
I agree. Here's the link:
subject: Including all JARs in a directory?
It's not a secret anymore!