add other projects as library in netbeans
java, netbeans
Solution
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`.
This works for NetBeans IDE 7.2.1.
Problem
I have a project A (for example an Ant based Java Application project) and a second project B (a Java Class Library project or another Java Application project, both Ant build based.) Project B has some additional Java library dependencies (.jar files in the Libraries folder). A depends on B. A can use classes which are written by myself in B but it can not see classes in the additional libraries of B unless I add those libraries/jar files to A. Is there a way to get NetBeans to automatically manage the library dependencies in A by including the dependencies of B in addition to B's own jar file? In eclipse when you add .jar files to project B, it is not necessary to add them to A again. Thanks.