title: Multiple jars in classpath not working
body: <p>I have seen several very similar questions on stackoverflow, but haven't come across anything that exactly matches my problem. I have a folder with several .java files, and another folder with two .jar files. I need to include both the jar files while using javac so that the entire project gets compiled at one go:</p>
  
  <pre><code>$: javac -classpath .:~/myjardir/*.jar ~/myprojectdir/*.java
  </code></pre>
  
  <p>But if I do this, only the first jar is recognized, and everything that depends on the second jar throws an error. Surprisingly, if I compile each program separately,</p>
  
  <pre><code>$: javac -classpath .:~/myjardir/oneofthejars.jar ~/myprojectdir/file1.java
  </code></pre>
  
  <p>then everything works fine. I have also compiled the project separately in Eclipse just to test the code and the jars. It is only when I try to use both the jars with <code>-classpath</code> in command line that I get the errors. Wildcard entries are supposed to work in JDK6, so I am at a loss here.</p>