Ensure you have installed a suitable JDK, as explained in our Java Installation Guides.
Install IntelliJ IDEA: You can get it from here. Either the Community Edition (free) or the Ultimate Edition (free for students) will do.
Configure the JDK.
Note: step (b) is needed only if your project is using Gradle (i.e., if there is a build.gradle
file in the project root folder).
(a) Confirm the project JDK is set to the one you are supposed to use for the project, as explained here.
(b) Confirm the correct JVM is used for Gradle, as given in the panel below:
A slightly more detailed explanation (from CodeLaunch) with some additional info at the end.