Creating First Java Application in IntelliJ IDEA (original) (raw)

Last Updated : 28 Jan, 2021

IntelliJ IDEA is a Java IDE that is one of the 3 biggest and most popular IDE’s in the world. It has two versions, namely the free open-source community edition and a paid Ultimate edition. Some features of IntelliJ IDEA are as follows:

Procedure:

  1. Start a project
  2. Create a package inside the project and corresponding classes to the package created
  3. Write the code to be executed in a text editor
  4. Package the above project in JAR
  5. Test the application
  6. Execute the above JAR file

Implementation:

Step 1: Start a project

Step 2: Create a package inside the project and corresponding classes to the package created

Step 3: Write the code to be executed in a text editor

Writinga demo program in the text editor that should only print “This is my first project in java” after the program is successfully compiled and run.

Example

Java `

// Java demo program to print message on the console

// Importing input output classes import java.io.*;

// Class public class Geeksforgeeks {

// Main driver method
public static void main(String[] args)
{
    // Print and display on the console after
    // successful compilation and execution
    System.out.println(
        "This is my first project in java");
}

}

`

Step 4: Package the above project in JAR

Step 5 -NOW TEST YOUR APPLICATION

Step 6: Execute the above JAR file