开发者

HttpEntity ClassNotFound?

开发者 https://www.devze.com 2023-01-10 11:23 出处:网络
hi im trying to use apatche 4.0.1 using the post methode in this example but i got开发者_开发问答 HttpEntity ClassNotFound exception You are not correclty including the httpcore jar into your class pa

hi im trying to use apatche 4.0.1 using the post methode in this example but i got开发者_开发问答 HttpEntity ClassNotFound exception


You are not correclty including the httpcore jar into your class path. Are you running it as a jar, webapp or just application via some IDE?

Edit: Based on your comment.

ClassNotFoundException: org.apache.commons.logging.LogFactory

Thats your culprit. Im assuming httpcore uses LogFactory and you are not including it in your classpath. Look for commons-logging.jar and include that in your classpath as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号