Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Netbeans: how to export libraries to other projects?

Thread view: 
Bart Wakker - 12 Nov 2006 21:44 GMT
Hello,

I'm used to eclipse and want to give netbeans a try. I try to set up
some projects and am having problems.

Suppose I have a project A that uses some library X (as defined in the
library manager).

Now I create a second project B that depends on A. What I observe is
that the output of A (its jar file(s)) becomes available to B. But I
would also expect (like in eclipse project dependancies) that all
dependancies of A, in this case library X, becomes automatically
available to B. This seems not to be the case.

When you have lots of projects with lots of dependancies, it is very
cumbersome to have to import explicitly every dependancy in each
project. Is this automatic export/import between dependant projects
not available in netbeans, or have I missed the way to set it up
properly?

TIA,

Bart
hilz - 13 Nov 2006 04:02 GMT
> Hello,
>
[quoted text clipped - 19 lines]
>
> Bart

How are you adding the dependency? When you go to the project properties
  -> libraries section, how do you add the dependency? Are you using
"Add JAR/Folder" button?
Maybe if you use the "Add Project" and add project A as a dependency in
project B, then that will carry over any libraries that A depends on.

By the way, you might get better help on the NetBeans mailing lists
which can be accessed through NNTP (news) via gmane.org

Here is the list of available groups:
http://www.netbeans.org/community/lists/top.html

check out the "Forums and Newsgroups" section here:
http://www.netbeans.org/community/lists/
for how to access it as a newsgroup.
Bart Wakker - 13 Nov 2006 21:49 GMT
> How are you adding the dependency? When you go to the project
> properties  -> libraries section, how do you add the dependency? Are
> you using "Add JAR/Folder" button?
> Maybe if you use the "Add Project" and add project A as a dependency
> in project B, then that will carry over any libraries that A depends
> on.

Yes I'm using "add project", and it doesn't carry over any
dependencies. So even without external libraries, If A imports B and B
imports C, A does not see C :(. I seem to have to explicitly import C
into A.

I'm used from Eclipse that all dependancies are carried over,
however you can fine tune this quite well: You can select which
imported libraries are exported to other projects, and even can enter
filters based on package (positive and negative). It seems eclipse is
much more advanced in this area.

> By the way, you might get better help on the NetBeans mailing lists
> which can be accessed through NNTP (news) via gmane.org

Thanks, I'll try the mailing lists.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.