Why am I getting "Exception in thread "main" java.lang.NoClassDefFoundError: org/jsoup/Jsoup"?
<p>I have compiled my program, and when I go to run it in terminal, it gives me the following error:</p>

<p>Exception in thread "main" java.lang.NoClassDefFoundError: org/jsoup/Jsoup</p>

<p>at YelpScraper.main(YelpScraper.java:45)</p>

<p>Caused by: java.lang.ClassNotFoundException: org.jsoup.Jsoup</p>

<p>at java.net.URLClassLoader.findClass(URLClassLoader.java:381)</p>

<p>at java.lang.ClassLoader.loadClass(ClassLoader.java:424)</p>

<p>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)</p>

<p>at java.lang.ClassLoader.loadClass(ClassLoader.java:357)</p>

<p>... 1 more</p>

<p>Here is my code:</p>

<pre><code>import java.util.ArrayList;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.Scanner;

public class YelpScraper
{
    public static void main(String[] args) throws IOException, Exception, RuntimeException
    {        
        //Variables
        String description;
        String location;
        int pages;
        int parseCount = 0;
        Document document;

        Scanner keyboard = new Scanner(System.in);

        //Perform a Search
        System.out.print("Enter a description: ");
        description = keyboard.nextLine();

        System.out.print("Enter a state: ");
        location = keyboard.nextLine();

        System.out.print("How many pages should we scan? ");
        pages = keyboard.nextInt();

        String descString = "find_desc=" + description.replace(' ', '+') + "&amp;";
        String locString = "find_loc=" + location.replace(' ', '+') + "&amp;";
        int number = 0;

        String url = "https://www.yelp.com/search?" + descString + locString + "start=" + number;
        ArrayList&lt;String&gt; names = new ArrayList&lt;String&gt;();
        ArrayList&lt;String&gt; address = new ArrayList&lt;String&gt;();
        ArrayList&lt;String&gt; phone = new ArrayList&lt;String&gt;();

        //Fetch Data From Yelp
        for (int i = 0 ; i &lt;= pages ; i++)
        {

            document = Jsoup.connect(url).get();

            Elements nameElements = document.select(".indexed-biz-name span");
            Elements addressElements = document.select(".secondary-attributes address");
            Elements phoneElements = document.select(".biz-phone");

            for (Element element : nameElements)
            {
                names.add(element.text());
            }

            for (Element element : addressElements)
            {
                address.add(element.text());
            }

            for (Element element : phoneElements)
            {
                phone.add(element.text());
            }

            for (int index = 0 ; index &lt; 10 ; index++)
            {
                System.out.println("\nLead " + parseCount);
                System.out.println("Company Name: " + names.get(parseCount));
                System.out.println("Address: " + address.get(parseCount));
                System.out.println("Phone Number: " + phone.get(parseCount));

                parseCount = parseCount + 1;
            }

            number = number + 10;

        }
    }
}
</code></pre>

<p>I am using BlueJ and put my jsoup-1.10.1.jar into the library, so I'm confused as to why it suddenly can't find these classes. It compiled just fine. What am I doing wrong?</p>