title: Compiling multiple jar and java files using javac
body: <p>I downloaded a sample code written in java that has multiple jar files and java files. I am not a Java programmer so I am having a hard time compiling the code. Here's my attempt:</p>
  
  <pre><code>javac -classpath lib/*.jar src/*.java
  </code></pre>
  
  <p>However this is what I get:</p>
  
  <pre><code>javac: invalid flag: lib/dom4j-1.6.1.jar
  Usage: javac &lt;options&gt; &lt;source files&gt;
  use -help for a list of possible options
  </code></pre>
  
  <p>What's wrong with my approach and how can I compile the code? ALl the jar files are located in the lib folder, and the java files in the src folder.</p>