0

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.

Fayre
  • 83
  • 1
  • 2
  • 11
  • Could you hover with your mouse on the red light bulb (next to the code line marked in red) and add the text of the error here? This can help. – ShacharSh May 29 '16 at 10:42
  • sure, I edited the image. thanks! – Fayre May 29 '16 at 12:10
  • I had a similar issue, I fixed by deleting this folder: %USER_HOME%\.IntelliJIdea70\system\caches - https://intellij-support.jetbrains.com/hc/en-us/community/posts/206299399/comments/207234979 – Enrico Giurin Mar 08 '19 at 10:12

1 Answers1

0

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.

C14L
  • 12,153
  • 4
  • 39
  • 52
Jae Lee
  • 16
  • Oooh of course, thanks! Moving the .class files into the target ordner solved the problem. Strangely, the error messages didn't dissapear... but I guess it's a problem with intellij since compiling and running the main class now works fine – Fayre May 29 '16 at 12:14