问题描述
我在 http://hc.apache.org/中下载了jar 4.3.1-bin.zip. downloads.cgi 但是我不知道如何使用它,我在Netbeans的Lib文件夹中添加了JAR,但是它不能解决我的问题
I downloaded the jar 4.3.1-bin.zip in http://hc.apache.org/downloads.cgiBut I don't know how to use it, I added JAR in Lib folder in Netbeans but it not resolved my problem
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;
这些导入但"org.apache.http.xxxxx"不存在
these imports yet "org.apache.http.xxxxx" does not exist
有人可以帮助我吗?谢谢!
Can anybody help me? Thanks!
推荐答案
NetBeans 6.8中的快速解决方案.
Quick solution in NetBeans 6.8.
在项目"窗口中,右键单击缺少库的项目名称->属性"->项目属性"窗口将打开.在类别"树中,选择库"节点->在项目属性"窗口的右侧,按添加JAR/文件夹"按钮->选择所需的jar.
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.
这篇关于如何在NetBeans IDE中添加外部库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!