C3rd
IntelliJ IDEA + Java versions + Maven + Gradle
Posted: 5 Jun 2020, 11:57am - Friday
Ok, I have been writing java codes from quite some time now. And most common I forgot to set are the following areas to configure in IntelliJ IDEA.
- Project Structure - always set both Project SDK and Project Language Level
![](/wp-content/uploads/2020/06/project_structure-1024x848.png)
2. SDK - you have to define the JDK home path to use in your project
3. Java bytecode - ensure that you set the Project bytecode version and add your project in per-module bytecode version and define the target bytecode version.
![](/wp-content/uploads/2020/06/java_bytecode_version.png)
4. Maven - pom.xml file
![](/wp-content/uploads/2020/06/maven_java_version_11.png)
5. Gradle - build.gradle file
![](/wp-content/uploads/2020/06/gradle_java_version_11.png)
And if you fail to configure these versions, you'll end up seeing RED texts/icons.
![](/wp-content/uploads/2020/06/gradle_wrong_java_version.png)
![](/wp-content/uploads/2020/06/gradle_correct_java_version-1024x386.png)