The NetBeans Integrated Development Environment, or IDE, is a programming environment for the Java programming language. NetBeans organizes Java programs into projects. One program may have several sub-projects that it depends on. For example, a program that deals with user interfaces may import a program that deals with database connectivity as a sub-project. You can easily configure sub-projects using the NetBeans project properties editor. This editor allows you to set sub-projects and configure other dependency issues.
- Java Software Development Kit with NetBeans Integrated Development Environment (IDE) Bundle
Load the NetBeans IDE by clicking on its program icon. When the program loads, navigate to “New/New Project” and select “Java Application” from the list on the right-hand side of the screen. Select a name for the project and press the “Enter” key. A new source code file appears in the NetBeans text editor. The source code file contains an empty main method.
Click the vertically-oriented “Projects” button located on the left-hand side of the source code file. A menu displaying the project and its files appears.
Right-click on the name of your project. A menu appears.
Click “Properties” in the menu. The “Project Properties” window appears.
Click “Libraries” from the left-hand column. The “Project Properties” window changes to reflect that you are now editing the “Libraries” for this project.
Click the button “Add Project.” An “Add Project” window appears. Select whatever sub-project you want this project to depend upon and press the “OK” button. The project name then appears under the list of sub-projects in the “Project Properties” window.
Click the button “OK” to save the changes and exit. Your project now has a sub-project that it depends upon.