aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Including all JARs in a directory?" Watch "Including all JARs in a directory?" New topic
Author

Including all JARs in a directory?

Barry Burd
Author
Ranch Hand

Joined: Jun 18, 2003
Posts: 118
    
    5

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
CLASSPATH=dirname\first.jar;dirname\second.jar;dirname\third.jar
but you couldn't say
CLASSPATH=dirname\*.jar
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....
Regards
Maulin
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

Barry,
Is the Java Extension Mechanism not sufficient for your needs?
Good Luck,
Avi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Including all JARs in a directory?
 
Similar Threads
classes missing from the class path
How to set up xerces
while deploying Spring-Hibernate-Sip Enterprise Application getting NoClassDefFoundError
Doubt on executing a struts application in jboss server
path problem in windows os