Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Netbeans: how to export libraries to other projects?

Reply
Thread Tools

Netbeans: how to export libraries to other projects?

 
 
Bart Wakker
Guest
Posts: n/a
 
      11-12-2006
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
 
Reply With Quote
 
 
 
 
hilz
Guest
Posts: n/a
 
      11-13-2006
Bart Wakker wrote:
> 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



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.
 
Reply With Quote
 
 
 
 
Bart Wakker
Guest
Posts: n/a
 
      11-13-2006
hilz <> writes:

> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Export to PDF with google maps + msacces export Maarten Porters Ruby 1 07-28-2008 01:45 PM
[eclipse] export with referenced libraries knguyen Java 2 12-04-2007 07:12 PM
Using mandatory libraries (custom class loading vs. expanding libraries) Karsten Wutzke Java 21 06-29-2007 09:25 PM
Invalid export DLL or export format =?Utf-8?B?RGF2aWQgVmFsbGU=?= ASP .Net 0 10-29-2003 11:46 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57