Netbeans : how to install 3rd parties library?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2008
Posts: 1,412
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 182
firstPerson's Avatar
firstPerson firstPerson is online now Online
Nearly a Posting Virtuoso

Netbeans : how to install 3rd parties library?

 
0
  #1
Sep 15th, 2009
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.
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e, Paul Thompson, SgtMe, murtan, xavier666, jonsca, orangejediman]
2) What does this sequence  equal to :  (.5u - .5a)(.5u-.5b)(.5u-.5c) ...[*solved by : murtan, xavier666]
3) What is the 123456789th prime numer?
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,450
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 262
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

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

 
1
  #2
Sep 15th, 2009
project -> properties -> libraries -> add jar
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,412
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 182
firstPerson's Avatar
firstPerson firstPerson is online now Online
Nearly a Posting Virtuoso

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

 
0
  #3
Sep 15th, 2009
Originally Posted by masijade View Post
project -> properties -> libraries -> add jar
Thanks, it worked. Is there a way to make this apply to every project
without doing it manually?
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e, Paul Thompson, SgtMe, murtan, xavier666, jonsca, orangejediman]
2) What does this sequence  equal to :  (.5u - .5a)(.5u-.5b)(.5u-.5c) ...[*solved by : murtan, xavier666]
3) What is the 123456789th prime numer?
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,450
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 262
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

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

 
0
  #4
Sep 15th, 2009
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.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC