title: java run include classpath from terminal
body: <p>Practising using jsoup. I use linux and program from the terminal command line. Inside a folder I have the jsoup-1.8.3.jar, and a java file containing basic code to get a title and show it back. for reference sake here is the code:</p>
  
  <pre><code>import java.io.IOException;  
  import org.jsoup.Jsoup;  
  import org.jsoup.nodes.Document;
  class WebCrawler{
  
       public static void main( String[] args ) throws IOException{  
              Document doc = Jsoup.connect("http://www.javatpoint.com").get();  
              String title = doc.title();  
              System.out.println("title is: " + title);  
       }  
  
  }
  </code></pre>
  
  <p>I think I've been able to compile the class file using the command:</p>
  
  <pre><code>javac -cp "jsoup-1.8.3.jar" WebCrawler.java
  </code></pre>
  
  <p>which gives back no error.</p>
  
  <p>However when trying what I think should be:</p>
  
  <pre><code>java -cp "jsoup-1.8.3.jar" WebCrawler
  </code></pre>
  
  <p>It will then say "Error: Could not find or load main class WebCrawler
  ". Upon trying to tab in the information, I find after the input of the jar file when I press W and tab, it will not find the WebCrawer class file ,which is there in the same folder along side the jar file and source.</p>
  
  <p>This should be a basic fix, what am I typing wrong?</p>