Cannot find symbol class error
Answered
Hello,
I was a Eclipse user, and now I am trying to setting my project in IntelliJ to become an IntelliJ user.
However I got error like :
'Cannot find symbol class' error.
Situation is like this.
A.java
-----------
B {
}
A extends C {
}
-----------
Two different classes are exist at one java file.
And In upper case, error message like ' cannot find symbol C class'.
Even though I have C class file in the same package.
At eclipse, there is no compile error like that, but IntelliJ does.
So I think there is some missing setting, or more strict inspection at IntelliJ perhaps?
Any Idea what brings that error?
Please help me. Thanks
Regards MJ
Please sign in to leave a comment.
could you please provide a demo project?
Demo project?
I don't know what you refer..
Sorry please be specific about demo project
An example project to reproduce a problem.
Hum..
B {
}
A extends C {
}
I can't assume that how specific example you need..
Whole file could be help? (the problem java source?)
B {
}
A extends C {
}
Is not enough to reproduce a problem, I have tried creating a simple runnable project:
Still, the problem has not reproduced. Please provide the entire project archived.
Oh I see, I got your point now.
Actually our project is kind of big scale, and I don't think I can't upload whole files.
So I will re-create demo project which have my same problem!
Will takes some times..
Thanks
My intellij is showing "cannot find symbol class scanner"
97 Shivapatil
Have you added an import statement for the
Scannerclass? (see example below)