How-to articles, tricks, and solutions about INTELLIJ-IDEA

Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project

To add external JAR files to an IntelliJ IDEA project, you can follow these steps:

Error: Could not find or load main class in intelliJ IDE

If you receive the error "Could not find or load main class" in IntelliJ IDEA, it means that the Java Virtual Machine (JVM) cannot find the class with the main method that you are trying to run.

Error:java: javacTask: source release 8 requires target release 1.8

This error message usually indicates that you are trying to compile your Java code with a version of the javac compiler that is not compatible with the version of the Java language that your code is written in.

How to add directory to classpath in an application run profile in IntelliJ IDEA?

To add a directory to the classpath in an application run profile in IntelliJ IDEA, follow these steps:

How to build JARs from IntelliJ properly?

To build a JAR (Java Archive) file from IntelliJ IDEA, you need to follow these steps:

Import Maven dependencies in IntelliJ IDEA

To import Maven dependencies in IntelliJ IDEA, you can follow these steps:

intellij incorrectly saying no beans of type found for autowired repository

If IntelliJ is saying "No beans of type 'X' found for autowiring" for a repository that you are trying to autowire, it means that the Spring application context does not contain a bean of the specified type.

IntelliJ inspection gives "Cannot resolve symbol" but still compiles code

There are a few possible reasons why IntelliJ might show a "Cannot resolve symbol" error while still being able to compile your code.

Maven plugins can not be found in IntelliJ

There are several possible reasons why Maven plugins might not be found in IntelliJ: