How to Create Java Application Using Netbeans 8.2

by Didin J. on Dec 08, 2016 How to Create Java Application Using Netbeans 8.2

How to create Java Application using Netbeans 8.2 IDE with easy and simple step.

This time I will show you how to create Java application using Netbeans 8.2 IDE (Integrated Development Environment). Let starting by start you Netbeans IDE.

Create New Java Application Project

To create the new project just click the folder with plus sign icon toolbar.

In wizard box, choose Java and Java Application.

Click Next and fill all fields like below and leave default checkbox.

Click Finish. Now you see project structure with main class inside myfirstjavaapplication package. Just edit your main class with adding this code:

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package myfirstjavaapplication;

/**
 *
 * @author didin
 */
public class MyFirstJavaApplication {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // This is new code
        System.out.println("Hello World, this is my first java application");
    }
    
}

Save your changes then run your application by open menu then choose Run then click Run Project or by click run icon in the toolbar.

You can see the results below your code editor. That's the first java application for today.

Thank You

The following resources might be useful for you:

Loading…