Step Wise Guide to NetBeans IDE

Introduction

In this article we will learn to create our first program in NetBeans. After this article we will be in the condition to at least get started and create applications using the NetBeans IDE.

Step 1:

After first installing the NetBeans IDE, we need to start it by clicking on the icon on your Desktop as usual. The screen will look like the following:

fig2.1.jpg

Step 2:

The very first page that will appear like this:

fig2.2.jpg

Step 3:

Now we need to move onto the menu bar, click on "File" and then click on the menu item "New Project". The  guideline screenshot is as below.

fig2.3.jpg

Step 4:

Then a window titled New Project will appear. Now we need to choose our project categories from the window. Since my example is based on Java, we will proceed by selecting the Java category and then click on the "Next" button.

fig2.4.jpg

Step 5:

After selecting the categories and clicking on the next button a window named New Java Project will appear, since we selected Java as our project category. Now here we need to enter the project name, then click on "Create Main Class" and write the main class name. For convenience ensure that there are no spaces in the main class name and the first letter of every word is capitalized. Now click on the "Finish" button.

fig2.5.jpg

Step 6:

Now we can write our source code on the editor shown. You can see that the default main class is already there for the programmer to complete his/her task faster.

fig2.6.jpg

Step 7:

While writing the source code one can notice that a dropdown list appears when we write the name of any pre-defined class or interface etcetera. It provides hints and completes the work faster compared to other text editors.

fig2.7.jpg        

Step 8:

After completing the source code, the next question that may arise is: How to run the program??? The answer to this question is illustrated in the screenshot below.

fig2.9.jpg

Step 9:

We don't need to save our program after editing it every time and before running it.

Step 10:

The output of the program will be displayed just below the source code window. The output screenshot is shown below.

fig2.10.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all