Create Java Console App in IntelliJ: Quick Start Guide

Create a Java console application in IntelliJ by following these steps.

Liam Jul 25, 2026
Must-Have IntelliJ IDEA Plugins For Java Developers
Must-Have IntelliJ IDEA Plugins For Java Developers

Create a Java console application in IntelliJ by following these steps.

Must-Have IntelliJ IDEA Plugins For Java Developers
Must-Have IntelliJ IDEA Plugins For Java Developers

IntelliJ is a popular Integrated Development Environment (IDE) used for developing Java applications. To create a Java console application in IntelliJ, you need to set up a new project and write the necessary code.

How to design a simple dashboard UI using Swing and Java -Netbeans
How to design a simple dashboard UI using Swing and Java -Netbeans

Setting Up a New Project in IntelliJ

First, you need to create a new project in IntelliJ. To do this, open IntelliJ and click on "File" in the top menu. Select "New" and then "Project" from the dropdown menu.

Top 50 Java Projects
Top 50 Java Projects

Choose "Java" as the project type and select the Java version you want to use. For this example, we'll choose Java 11. Click "Next" to proceed.

Configuring the Project Structure

🧠 HOW TO CREATE AND USE JAVA INTERFACES EFFECTIVELY 💡
🧠 HOW TO CREATE AND USE JAVA INTERFACES EFFECTIVELY 💡

In the project structure window, you can configure the project's module, dependencies, and other settings. For a console application, you don't need to add any dependencies, so you can click "Next" to proceed.

Choose the project location and name, then click "Finish" to create the project.

Writing the Java Code

☕ Java Basics Cheat Sheet for Beginners | Learn Java in One Page 🚀
☕ Java Basics Cheat Sheet for Beginners | Learn Java in One Page 🚀

Now that the project is set up, you can start writing the Java code for your console application. In the project window, navigate to the "src" folder and create a new Java class.

For this example, we'll create a class called "HelloWorld". In the class, you can write the necessary code to print a message to the console.

Running the Java Console Application

60 Java projects ideas💡
60 Java projects ideas💡

To run the Java console application, you can use the "Run" button in the toolbar. Alternatively, you can use the "Run" menu and select "Run 'HelloWorld.main()'".

The application will run, and you should see the message "Hello, World!" printed to the console.

Best Java IDEs in 2020
Best Java IDEs in 2020
Top 5 Java Projects for Beginners
Top 5 Java Projects for Beginners
Java File Outside of Source Root in IntelliJ: A Complete Troubleshooting Guide
Java File Outside of Source Root in IntelliJ: A Complete Troubleshooting Guide
Learn Java in 30 Days Only
Learn Java in 30 Days Only
Java Cheat Sheet for Beginners & Full Stack Developers | Complete Java Programming Reference
Java Cheat Sheet for Beginners & Full Stack Developers | Complete Java Programming Reference
Java
Java
Java Beginner Cheetsheet
Java Beginner Cheetsheet
Interface in Java
Interface in Java
Java Swing UI Redone
Java Swing UI Redone

Debugging the Application

If you encounter any issues while running the application, you can use IntelliJ's built-in debugger to identify the problem.

Set a breakpoint in the code, then click the "Debug" button in the toolbar. The debugger will pause the application at the breakpoint, allowing you to inspect the variables and execute the code step-by-step.

Testing the Application

To test the application, you can write unit tests using IntelliJ's built-in testing framework.

Create a new test class, then write the necessary test methods to verify the application's behavior.

Conclusion and Next Steps

With IntelliJ, you can create a Java console application quickly and efficiently. This guide has walked you through the process of setting up a new project, writing the Java code, running the application, and debugging any issues.

Now that you have a working Java console application, you can expand on the project by adding more features and functionality. Consider using IntelliJ's built-in tools and frameworks to streamline your development process and improve the quality of your code.

Visual guide

Must-Have IntelliJ IDEA Plugins For Java Developers
Must-Have IntelliJ IDEA Plugins For Java Developers
How to design a simple dashboard UI using Swing and Java -Netbeans
How to design a simple dashboard UI using Swing and Java -Netbeans
Top 50 Java Projects
Top 50 Java Projects
🧠 HOW TO CREATE AND USE JAVA INTERFACES EFFECTIVELY 💡
🧠 HOW TO CREATE AND USE JAVA INTERFACES EFFECTIVELY 💡
☕ Java Basics Cheat Sheet for Beginners | Learn Java in One Page 🚀
☕ Java Basics Cheat Sheet for Beginners | Learn Java in One Page 🚀
60 Java projects ideas💡
60 Java projects ideas💡
Best Java IDEs in 2020
Best Java IDEs in 2020
Top 5 Java Projects for Beginners
Top 5 Java Projects for Beginners

Related topics