Why so red? IntelliJ seems to think every declaration/method cannot be found/resolved

前端 未结 28 1550
予麋鹿
予麋鹿 2020-12-12 11:22

I just installed and re-installed IntelliJ. Every Java file is coming up RED. I checked the JDK; it is at 1.6.##. The maven clean install build worked just fine

28条回答
  •  余生分开走
    2020-12-12 12:01

    I had the same problem and after trying all of the above suggestions, it turned out that my IntelliJ installation had not picked up my JAVA_HOME system variable, and it had no SDK/JDK set.

    I fixed it by following these instructions: Configuring Global, Project and Module SDKs

提交回复
热议问题