java 如何从 Apache 安装 HttpClient 库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7585942/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install HttpClient library from Apache?
提问by Borut Flis
import org.apache.http.client.*;
import org.apache.http.client.*;
I want to import this java package it says that it doesn't exist, so where should I download this package from, and where to install it ?
我想导入这个java包,它说它不存在,那么我应该从哪里下载这个包,在哪里安装它?
采纳答案by Hamed
You can download the jar file from the Maven Repository.
您可以从Maven Repository下载 jar 文件。
You just need to place the jar on the classpath, no need to install anything.
您只需要将 jar 放在类路径上,无需安装任何东西。
回答by ashutosh raina
ypu can download it from here . http://hc.apache.org/httpclient-3.x/You will need to add it to the build path (if you are using eclipse).
ypu 可以从这里下载。 http://hc.apache.org/httpclient-3.x/您需要将它添加到构建路径中(如果您使用的是 eclipse)。