简体   繁体   English

如何在 Eclipse 中添加 apache httpclient .zip 库

[英]how to add apache httpclient .zip library in Eclipse

I am trying to add Apache HTTP client to my project but how should i do that?我正在尝试将 Apache HTTP 客户端添加到我的项目中,但我该怎么做?

there is just some .zip files here有只是一些.zip文件在这里

i couldn't find any .jar file to add my project even after extracting .zip file and adding .zip files doesn't work.即使在提取 .zip 文件并且添加 .zip 文件不起作用后,我也找不到任何 .jar 文件来添加我的项目。 here这里

Best way is using MAVEN, create maven project and download apache httpclient from maven repository.最好的方法是使用 MAVEN,创建 maven 项目并从 maven 存储库下载 apache httpclient。

http://www.tech-recipes.com/rx/39279/create-a-new-maven-project-in-eclipse/ http://www.tech-recipes.com/rx/39279/create-a-new-maven-project-in-eclipse/

and after that write dependency in dependencies section然后在依赖项部分写入依赖项

    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.5.2</version>
    </dependency>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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