Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

netbeans : add library permanently

I work in a group project and after every checkout
I have to remove and add the javamail api..(because the path is relative) how can i make it IN the Project folder?

This is how i add the library :

  1. right click on librarys folder
  2. Add/jar Folder..
  3. Choose the mail.jar

But when my collegue checks this out... he get's problems. How can i make the path absolute ?

like image 423
darkrain Avatar asked Jun 27 '09 21:06

darkrain


2 Answers

This worked for me: Project Properties -> Libraries -> Add JAR/Folder, and in that dialog there is a "Reference as" option. Choose "Relative Path" and then locate your library.

like image 104
John Avatar answered Nov 15 '22 08:11

John


A better way to add library to Netbenas would be

Tools -> Libraries -> New Library...

After it:

Project tab -> [your project] -> Properties -> Libraries -> Add Library

This would be always "relative"

like image 21
ivan_ivanovich_ivanoff Avatar answered Nov 15 '22 06:11

ivan_ivanovich_ivanoff