File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Including all JARs in a directory?

 
Barry Burd
Author
Ranch Hand
Posts: 118
5
Android Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Barry,
Is the Java Extension Mechanism not sufficient for your needs?
Good Luck,
Avi.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic