Java,如何在netbeans中添加库文件? [英] Java, How to add library files in netbeans?
问题描述
我是Netbeans IDE和Java的新手。我有一个java项目,显示了很多编译错误:
I am new to the Netbeans IDE and Java. I have a java project that shows lot of compilation errors:
can not import "org.apache.commons.logging.Log"
有人可以帮我解决这些错误,如何在Netbeans IDE中添加库文件?
Can somebody please help me with these errors, How do I add library files in Netbeans IDE?
推荐答案
NetBeans 6.8中的快速解决方案。
Quick solution in NetBeans 6.8.
在项目窗口右侧 - 单击缺少库的项目名称 - >属性 - >打开项目属性窗口。在类别树中选择库节点 - >在项目属性窗口的右侧,按添加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.
您也可以看一下我的短片视频操作方法。
You also can see my short Video How-To.
这篇关于Java,如何在netbeans中添加库文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!