Can setup a project in an IDE
Tools → IntelliJ IDEA →
[IntelliJ Official Tutorial] Creating, Running and Packaging Your First Java Application
A slightly more detailed explanation (from CodeLaunch) with some additional info at the end.