I am writing a plugin which will be loaded by another application of course, and I want to use JSoup for some web pulling. However, when I bundle the jar and run the application, I get: NoClassDefFoundError: org/jsoup/Jsoup I have jsoup in my classpath just as all my other dependencies are. Jsoup however, will not be on the hosts machine. I have also tried bundling the project jar with jsoup in a lib folder within the jar itself and referencing it from there, and I still had no luck. How can I get Jsoup loaded on the JVM in my project? Edit: I can run Jsoup fine in eclipse, just not when it is bundled in a jar
Edit2: Why is it that I can have some dependencies work without having it loaded on the hosts machine such as google's gag project? why is it that I need jsoup loaded on the hosts machine? I know I have a misunderstanding of how the JVM works :/