Search code examples
intellij-idea.class-file

Intellij cannot find .class


I got a little demo program with 2 .class files. If I want to open it in IntelliJ, my main class cannot find the other .class files. I already checked that all files are in the same folder.

intellij cannot find symbol

If I compile it with the Windows shell, everything works fine. Only IntelliJ can't find the files.


Solution

  • It may be due to the fact that your FractalTerrain file is not a .java file but it's a .class file.

    You should move the .class files into target or make a .java file.