使用jsonparser()时java.lang.NoClassDefFoundError:org / apache / http / client / ClientProtocolException

时间:2015-08-19 19:12:32

标签: java httpclient agents-jade

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

错误:代理用户61在没有正确终止的情况下死亡! 国家是2

1 个答案:

答案 0 :(得分:1)

HTTPClient.jar添加到您的类路径中。并查看this 了解详情。