NetBeans IDE Project Basics Printable
NetBeans IDE Project Basics Printable
by Dirk Schreckmann
NetBeans IDE is a free, open source, popular (with approximately 1 million downloads), integrated
development environment used by many developers. Out of the box, it provides built-in support for
developing in Java, C, C++, XML, and HTML. And this author especially likes the support for editing
JSPs, including syntax highlighting, HTML tag completion, JSP tag completion, and Java code
completion.
Following are step-by-step instructions to help NetBeans IDE greenhorns to get started developing Java
applications with NetBeans IDE. The basic steps described are as follows.
Start NetBeans.
Start a new project: Main Menu -> Project -> Project Manager -> New Project
Click New.
To specify a location on a disk drive where project files will be stored, mount a directory as part of the
project.
To the project, add a directory to hold project files: Main Menu -> File -> Mount Filesystem...
Right mouse click on a mounted project directory. Select New -> Java Class
Name the class and click Finish.
Edit the Java class as desired. Following is the code used in this tutorial.
In the Filesystems Explorer, assure that the main Java class is selected.
Go to Main Menu -> Build -> Execute to compile and run the main Java class in one step.
Note: To just compile a class, go to Main Menu -> Build -> Compile.
After executing, you should see results similar to the following. (Note that the NetBeans IDE captures
console output, not unlike JBuilder. So, the output of this program appears in the lower IDE panel.)
Resources
For further information and assistence on using NetBeans IDE, visit The NetBeans Community and
don't forget to mosey on over to The IDEs and Other Tools Forum in the JavaRanch Saloon.