Linked Questions
11 questions linked to/from Getting "cannot find Symbol" in Java project in IntelliJ
279 votes
42 answers
438k views
Why does IntelliJ give me "Package doesn't exist" error?
I'm trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packages and wrote the methods, ...
196 votes
20 answers
165k views
java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled
After upgrade, Unable to run the application from intellij IDE. Intellij version : IntelliJ IDEA 2020.3 (Community Edition) Build #IC-203.5981.155, built on December 1, 2020 lombok version : 0.32-EAP ...
42 votes
10 answers
34k views
Intellij 12 - Can't Reimport Module
So I ran into a strange problem today. I was having some issues with one of my modules in IntelliJ so I decided I should try blowing it out and rebuilding it from a fresh checkout. I deleted the ...
48 votes
2 answers
10k views
In intellij idea what's the difference between Build and Rebuild artifact?
There is an option to build artifact and to rebuild artifact, also clean artifact. So what build and rebuild artifact do and what's the difference between them?
10 votes
4 answers
13k views
intelliJ cannot find a specific method
I am getting a compile error in the following code that I do not know how to fix. String path = "document.txt"; File file = new File(path); Files.readString(file.toPath()); //cannot find ...
11 votes
2 answers
64k views
Intellij IDEA Maven Import problems
I wanted to switch to IntelliJ for forge modding (minecraft). When I do what they are saying to do on internet, I get a maven error... Unindexed remote maven repositories found. Disable......
3 votes
2 answers
4k views
"java: cannot find symbol" in IntelliJ but gradle builds
I'm building a java project with IntelliJ IDEA 2018.1.5 (Community Edition) with the following errors: However, if I build with ./gradlew build --x test, it is OK. I've tried all methods here, but ...
-2 votes
1 answer
2k views
What is the return type of Collectors.groupingBy(...)?
I have a MultiValueMap<String, String> and let's say I want to group it by the key's length. MultiValueMap<String, String> map = // Some defined MultiValueMap ... map.entrySet().stream()...
2 votes
1 answer
1k views
Intellij IDEA: java file marked as "excluded from compilation"
I run across a strange issue: the file marked by the cross is excluded from compilation. Does anybody know about this and what to do to get rid of that?
1 vote
1 answer
759 views
error: cannot find symbol - when new class is added tand imported in an existing gradle project in IntelliJ IDEA
I got to work with an existing java code base which uses gradle. I had to create a new class and import it in an existing class. When I run gradle build or gradle bootRun it gives the following error ...
0 votes
1 answer
69 views
Cannot find symbol when calling constructor [duplicate]
When I try to run this code: public class Main { public static void main(String[] args) { Employee employee1 = new Employee("John", 5545, "R&D", "QA Lead", 50000); } } I get ...