简体   繁体   English

如何在NetBeans IDE中添加外部库?

[英]How to add external libraries in NetBeans IDE?

I downloaded the jar 4.3.1-bin.zip in http://hc.apache.org/downloads.cgi But I don't know how to use it, I added JAR in Lib folder in Netbeans but it not resolved my problem 我在http://hc.apache.org/downloads.cgi中下载了jar 4.3.1-bin.zip,但我不知道如何使用它,我在Netbeans的Lib文件夹中添加了JAR,但无法解决我的问题

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;

these imports yet "org.apache.http.xxxxx" does not exist 这些导入但“ org.apache.http.xxxxx”不存在

Can anybody help me? 有谁能够帮助我? Thanks! 谢谢!

Quick solution in NetBeans 6.8. NetBeans 6.8中的快速解决方案。

In the Projects window right-click on the name of the project that lacks library -> Properties -> The Project Properties window opens. 在“项目”窗口中,右键单击缺少库的项目名称->属性->“项目属性”窗口将打开。 In Categories tree select "Libraries" node -> On the right side of the Project Properties window press button "Add JAR/Folder" -> Select jars you need. 在“类别”树中,选择“库”节点->在“项目属性”窗口的右侧,按“添加JAR /文件夹”按钮->选择所需的jar。

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

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