在netbeans中添加其他项目作为库 [英] add other projects as library in netbeans
问题描述
我有项目A和B. B有一些.jar文件。 A取决于B. A可以使用由我自己编写的类,但它不能看到该jar文件中的类,所以我自己应该将.jar文件添加到A.
是否有类似eclipse的方式它不是必须重复添加.jar文件。将.jar文件添加到项目B时,在eclipse中
*,没有必要再将它们添加到A中。
I have project A and B. B has some .jar files. A depends on B. A can use classes which are written by myself but it can not see classes in that jar files so i myself should add that .jar files to A. is there a way like eclipse that it is not necessary to add .jar files repeatedly. * in eclipse when you add .jar files to project B, it is not necessary to add them to A again.
谢谢。
推荐答案
在项目文件夹中,您应该看到一个名为 Dependencies
的文件夹,右键单击该文件夹并选择添加依赖...
。打开打开项目
标签;从那里你可以从列表中选择你的项目。单击添加
。
In your project folder you should see a folder called Dependencies
, right click on that folder and choose Add Dependency...
. Open the Open Projects
tab; from there you can select your project from the list. Click Add
.
这适用于NetBeans IDE 7.2.1。
This works for NetBeans IDE 7.2.1.
这篇关于在netbeans中添加其他项目作为库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!