缺少HttpClient的依赖项 [英] Missing dependency for HttpClient

查看:98
本文介绍了缺少HttpClient的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Java桌面应用程序中使用HttpClient.我已经在构建路径中添加了 httpclient-4.0.1.jar httpmime-4.0.1.jar ,但是却收到错误消息类型org.apache. http.HttpResponse无法解析.它是从所需的.class文件中间接引用的.有人知道我缺少哪个依赖项/jar吗?

I'm using a HttpClient in a Java desktop application. I've added httpclient-4.0.1.jar and httpmime-4.0.1.jar to the build path, but I receive the error 'The type org.apache.http.HttpResponse cannot be resolved. It is indirectly referenced from required .class files'. Does anyone know which dependency/jar I'm missing?

推荐答案

可能您缺少httpcore jar.

Probably you are missing httpcore jar.

这篇关于缺少HttpClient的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆