title: How to import commons-io.jar jsp/java
body: <p>I am getting an exception:</p>
  
  <pre><code>Cannot find symbol: FileUploadException; 
  </code></pre>
  
  <p>I have a piece of code which uses </p>
  
  <pre><code>FileUploadException
  </code></pre>
  
  <p>The library that needs importing is: </p>
  
  <pre><code>org.apache.commons.fileupload.FileUploadException
  </code></pre>
  
  <p>The path to my project is :</p>
  
  <pre><code>D:\Projects\website
  </code></pre>
  
  <p>In the project folder I have each in its folder:</p>
  
  <pre><code>Tomcat, Derby, Website
  </code></pre>
  
  <p>I have copied:</p>
  
  <pre><code>commons-fileupload.jar and commons-io.jar
  </code></pre>
  
  <p>into both: </p>
  
  <pre><code>Tomcat/lib and Website/Web-INF/lib
  </code></pre>
  
  <p><strong>---------------I tried this--------------</strong></p>
  
  <p>just importing the library on its own</p>
  
  <pre><code>import org.apache.commons.fileupload.FileUploadException;
  </code></pre>
  
  <p>adding the jars to the class path upon build:</p>
  
  <pre><code>javac -cp .;D:Projects\website\Tomcat\lib\commons-fileupload.jar;D:\Projects\website\Tomcat\lib\commons-io.jar com/otrocol/app/*.java
  </code></pre>
  
  <p>adding them to the Environment variables CLASSPATH</p>
  
  <pre><code>D:Projects\website\Tomcat\lib\commons-fileupload.jar;D:\Projects\website\Tomcat\lib\commons-io.jar
  </code></pre>
  
  <p>I also tried adding the jars where my .java files are as @Scot Ship suggested</p>
  
  <p><strong>----mentions---</strong></p>
  
  <p><em>I am not using any IDE</em></p>
  
  <p>The code contains more unrecognized symbols, but I'm trying to solve one at a time</p>
  
  <p>First time using apache, tomcat, jsp.. please be gentle</p>