This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 1871
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: 1129

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?