New project

Create a new project in IntelliJ IDEA.

You can use the New Project Wizard to create a new project in IntelliJ IDEA. If you select the option to Add sample code, IntelliJ IDEA will add sample code to your project, containing a class with a main method.

If you select IntelliJ as your Build system, set JDK to 25, the sample code will be a compact source file and instance main method, introduced in Java 25.

Interested in JVM Development?

call to action image

Did you know you can get IntelliJ IDEA to download your JDK too?

Learn More


Related Resources

Add arguments
Add arguments
Add args to your main method.
Compact source file
Compact source file
Create a compact source file in IntelliJ IDEA.
Convert compact source file to class
Convert compact source file to class
Convert a compact source file to a class in IntelliJ IDEA.