简体   繁体   中英

java.lang.NoClassDefFoundError: org/apache/http/client/ClientProtocolException while using the jsonparser()

java.lang.NoClassDefFoundError: org/apache/http/client/ClientProtocolException
    at situasses.Situassess.<init>(Situassess.java:24)
    at myproject.RecomAgent.setup(RecomAgent.java:33)
    at jade.core.Agent$ActiveLifeCycle.init(Agent.java:1522)
    at jade.core.Agent.run(Agent.java:1468)
    at java.lang.Thread.run(Thread.java:744)Caused by: java.lang.ClassNotFoundException: org.apache.http.client.ClientProtocolException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 5 more

ERROR: Agent user61 died without being properly terminated !!! State was 2

Add HTTPClient.jar to your classpath. And also check this for details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM