Netbeans Ide Java Quick Start Tutorial: Setting Up The Project
Netbeans Ide Java Quick Start Tutorial: Setting Up The Project
This tutorial provides a very simple and quick introduction to the NetBeans IDE workflow by
walking you through the creation of a simple "Hello World" Java console application.
Once you are done with this tutorial, you will have a general knowledge of how to create and
run applications in the IDE.
To complete this tutorial, you need the following software and resources.
https://netbeans.org/kb/docs/java/quickstart.html
3. In the New Project wizard, expand the Java category and select Java Application as
shown in the figure below. Then click Next.
4. In the Name and Location page of the wizard, do the following (as shown in the figure
below):
In the Project Name field, type HelloWorldApp.
Leave the Use Dedicated Folder for Storing Libraries checkbox unselected.
In the Create Main Class field, type helloworldapp.HelloWorldApp.
https://netbeans.org/kb/docs/java/quickstart.html
5. Click Finish.
The project is created and opened in the IDE. You should see the following components:
The Projects window, which contains a tree view of the components of the project, including
source files, libraries that your code depends on, and so on.
The Source Editor window with a file called HelloWorldApp open.
The Navigator window, which you can use to quickly navigate between elements within the
selected class.
https://netbeans.org/kb/docs/java/quickstart.html
The file should look something like the following code sample.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package helloworldapp;
/**
*
* @author <your name>
*/
public class HelloWorldApp {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("Hello World!");
}
https://netbeans.org/kb/docs/java/quickstart.html