title: Recursively including jars into the classpath
body: <p>I have a project with several third-party JAR files in several directories.  Currently, the project uses some ant tricks to recursively include all jar files into the classpath.   I want to build a deployment for another site which will include JAR'ing my own code into a single file and somehow including the other JARs that I need.  <a href="http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html" rel="nofollow">Oracle claims</a> that wildcards on the commandline will not recursively include jars.  I want the deployment to work in Windows or Linux.</p>
  
  <p>It seems like I have the following options:</p>
  
  <ol>
  <li>Include ant with my JAR and run the existing script.</li>
  <li>Somehow re-organize the jars to be in a single directory so I can use a wildcard in my classpath.  Hopefully it won't break the third-party libraries.</li>
  <li>Manually create a big, ugly classpath.</li>
  </ol>
  
  <p>Does anyone know of an easier way?  I'm inclined to go with #1 for now.</p>