Once you have built your own packages, or if you want to use somebody elses, you will need to include them in other projects. Here is how one does that inside the Netbeans IDE.
Right-click on the libraries folder in the projects pane, and select add JAR/Folder.
Navigate to the jar you want to add to your project and click ok.
Add an import statement for the package you just included so that you can now use its classes. For example, my package "programster.core" had the Core class which I use as shown below:
No comments:
Post a Comment