| | |
Netbeans : how to install 3rd parties library?
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.
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?
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
----------------------------------------------
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
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?
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.
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
----------------------------------------------
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
![]() |
Similar Threads
- How to install Python3.1 on Ubuntu/Linux (Python)
- What library in Java creates graphics? [gaming] (Java)
- How to install using Standard HAL? (Windows NT / 2000 / XP)
- Name mangling: C++ static library (C++)
- Importing a library (Java)
- Windows wouldn't install!!!!! (Troubleshooting Dead Machines)
- Spyware complete with EULA (IT Professionals' Lounge)
- help i've got a HJT log! (Viruses, Spyware and other Nasties)
- cscgal I think we need.. (DaniWeb Community Feedback)
Other Threads in the Java Forum
- Previous Thread: Java TreeSet Assistance
- Next Thread: Small Bit of HELP, please!
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application arc arguments array arrays automation binary bluetooth c++ chat class classes client code codesnippet component csv database doctype draw ebook eclipse error event exception fractal freeze game givemetehcodez graphics gui html ide image input integer intellij iphone j2me java java.xls javaprojects jmf jni jpanel julia linux list loop loops mac map method methods mobile netbeans newbie number online oracle page parameter plazmic print problem program programming project recursion reporting rotatetext scanner screen sell server set size sms socket sort sourcelabs sql string superclass swing system template test testautomation threads time title tree tutorial-sample windows working






