Creating / accessing libraries in netbeans

I am a new netbeans user and am having trouble importing user-created libraries.

I created a library called "MyLibrary". Then I added a folder containing my saved projects (called "netbeansProjects") for the path to the classes that I wrote in netbeans. Now I am trying to import a class into a project that I am working on, but it will not allow me to do this. I get a "Package does not exist" massage. I would really appreciate help in solving this problem. I searched the Internet; I could not find anything.

+3
source share
1 answer

You will need to create the library using the Netbeans Library Manager. Go to ToolsLibraries, then select the button New Library...and create a new class library. You can add jar files using this method, not a Netbeans project.

To add a Netbeans project:

In the Netbeans Projects window, right-click the folder Librariesin your project and select Add Project..., then go to the Netbeans project that you would like to use. You will need to do this for each project that you would like to use.

+2
source

All Articles