For NetBeans, you will go to the Projects tab, then right-click the project that you want to add to the library, then click Properties. Go to the "Libraries" panel, then on the right side click "Add JAR / Folder". No need to retrieve it. All you have to do is right-click in the editor window and click "Fix Import".
For use outside NetBeans, you must add it to your Java path.
MG-Dev
source share