Developing Java Applications using NetBeans - Creating a console application using NetBeans IDE
(Page 3 of 4 )
Once you install NetBeans IDE 4.1, you should be able to see "NetBeans 4.1" in your programs list. Try opening your tool by going to start -> programs -> Net Beans 4.1 -> NetBeans IDE.
Let us create a simple console application using the same IDE. With the NetBeans IDE open, go through the following steps:
- Go to File -> New project (or you can directly press the "New Project" button) as highlighted in the following fig 1.

- You will be presented with a "New Project" window. Select "General" in the "categories" and "Java Application" in the "Projects" (as shown in Fig 2).

- After selecting accordingly click "next." You will be presented with a "New Java Application" window.
- Give the "Project Name" as "HelloWorld," provide your own location, and switch on all the check boxes. Your window must look something like the following fig 3.

- Once it looks like the above, click on "Finish."
- You can observe that it has readily made some code to make your life easier. You can try to play and explore for yourself all the tool windows (at the left side) available within the same IDE.
- Make modifications to your code in such a way that it looks something like the following:
package helloworld;
/**
*
* @author Administrator
*/
public class Main {
/** Creates a new instance of Main */
public Main() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hello World!");
}
}
- Execute your application and you should be able to see the result (which is simply a message "Hello World") as highlighted in fig 4.

Next: Creating a desktop application using NetBeans IDE >>
More Java Articles
More By Jagadish Chaterjee