title: How to compile a source file with jsoup.jar in classpath?
body: <p>I have a problem on executing a compiled file. I compile my <code>Hello.java</code> file as</p>
  
  <pre><code>javac -cp \mypathto\jsoup.jar Hello.java 
  </code></pre>
  
  <p>I can't execute it after, because I got the "undefined class Jsoup" error. I tried with different ways to add classpath but its still the same. Any idea? The <code>Hello.java</code></p>
  
  <pre><code>import java.io.File;
  import org.jsoup.*;
  
  
  public class Hello {
  
      /**
       * @param args
       */
      public static void main(String[] args)throws Exception {
          try {
              File input = new File("prove.xml");
  
              Document doc = Jsoup.parse(input, "UTF-8");
  //Document doc = Jsoup.connect("http://en.wikipedia.org/").get();
  
              Elements descriptions = doc.select("div.details &gt; p.description");
  
              for (Element element : descriptions) {
                  System.out.println(element.ownText());
                  System.out.println("--------------");
              }
  
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  
  }
  </code></pre>