1

I'm creating a Java Project in Eclipse, write some parser, which gives a random names with use a JSoup Library and when i started a server it gives me a error java.lang.NoClassDefFoundError: org/jsoup/Jsoup. Eclipse files. I also use Json-simple and everything is fine with it. JSoup is added as an external JAR library, and the error occurs only when I use Jsoup.connect().get; that is, the imported org object.jsoup.nodes.Document does not cause errors. P.s. I looked through my plugin using 7-zip and there is JSoup.jar in the libs folder, which means that the plugin is correctly assembled in a vmset with libraries. enter image description here

MikhailSH
  • 21
  • 4

1 Answers1

0

You don't have your libraries in the server.

To fix it, you can:

  1. Add them in the compiled jar. To do this, just check compilation options, or convert your project as maven or gradle

  2. Use another plugin that implement them.

  3. Load library jar from your plugin such as explained here or here

Elikill58
  • 4,050
  • 24
  • 23
  • 45