944,005 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1766
  • Java RSS
Sep 15th, 2009
0

Netbeans : how to install 3rd parties library?

Expand Post »
Does anyone know how to correctly add a 3rd party library to
NetBeans?

I have NetBeans 6.7.1

The library is from this site : Link. Its called wheels, and its for my class.

It comes in a zip file.

What I tried was this :

1) Set the zip file into my c drive
2) Start up netbeans
3) Click tools->library
4) Click class Libraries
5) click new Library
6) Called it Wheels
7) Under classPath tab , I set the zip file directory
8) same as 7 for source tab
9) Click OK

10) Try to import it like so : import Wheels.user.*;
and Error occurred.
Similar Threads
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,864 posts
since Dec 2008
Sep 15th, 2009
1

Re: Netbeans : how to install 3rd parties library?

project -> properties -> libraries -> add jar
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Sep 15th, 2009
0

Re: Netbeans : how to install 3rd parties library?

Click to Expand / Collapse  Quote originally posted by masijade ...
project -> properties -> libraries -> add jar
Thanks, it worked. Is there a way to make this apply to every project
without doing it manually?
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,864 posts
since Dec 2008
Sep 15th, 2009
0

Re: Netbeans : how to install 3rd parties library?

What does the documentation say? But, no, probably not. There might be (in the Window -> preferences/options area) a way to designate "default" jars, but I doubt it.

Change the startup of NetBeans to include it on NetBeans' classpath and NetBeans will have access to it, which does not necessarily mean that the projects in NetBeans would have access to it. And, even if they did, it wouldn't help much in the end, as once you have built a deployment jar from the project it would no longer have that jar on it's calsspath and so wouldn't "work". Adding it to the project will cause NetBeans to include that jar in the projects "dist" directory and add it to the deployments jars classpath in its manifest.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java TreeSet Assistance
Next Thread in Java Forum Timeline: Small Bit of HELP, please!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC