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.
Asked
Active
Viewed 105 times
1

MikhailSH
- 21
- 4
-
Provide code, and error stacktrace – infroz Jul 29 '21 at 13:53
-
The error is here `Document doc = Jsoup.connect("http://randomus.ru/name?type=101&sex=0&count=100").get();`. Error stacktrace added in top. – MikhailSH Jul 29 '21 at 15:51
-
Or you mean full code of function, where i call `Jsoup.connect()` ? – MikhailSH Jul 29 '21 at 15:53