title: Import jar class into java program
body: <p>I have this servlet program and an external .jar file (written by someone else) that I want to call to. I basically want to import one of the classes located in the jar file because it has a method that I need to call. Is this possible?</p>
  
  <p>Currently, the previous programmer was able to call to the class (I want) by simply:</p>
  
  <pre><code>import Validator.validate;
  </code></pre>
  
  <p>Now the name of the .jar is </p>
  
  <blockquote>
    <p>BugValidator.jar</p>
  </blockquote>
  
  <p>I've tried implementing the above code to no sucees, is there a specific location the file needs to be in? I am using netbeans 7.1, so should I add it to the filepath? </p>