New Java SDK instal error - can not resolve symbol String

Answered

Hi, I have installed new Java SDK and it starts to make a problems. I am on Win 10 64bit. Environment variables are ok but InteliJ IDEA cant resolve many symbols. Like on the picture. Everything red is not resolved. What should I do to fix it. I cant find any settings for it.

2
9 comments

Please make sure you've configured the Java SDK in IntelliJ IDEA and selected it for your project/modules.

See https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-application.html .

1

I found it. But it is not under Project but under Project structure.

0

Same error here. Reconfigured Java SDK, Project SDK and Modules SDK, didn't resolve

IntelliJ 2021.2.2

0

Rafael Please try File | Invalidate Caches | Invalidate and Restart.

0

Same error Serge Baranov

  • Invalidated caches with first three options selected
  • Restarted computer
  • Other projects have the same error
  • Other JDKs (changed from Java 8 to Java 11) produce the same error :-(

 

0

Try deleting the System directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#system-directory when the IDE is not running. If the issue persists, please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with the logs attached via Help | Collect Logs and Diagnostic Data.

0

Worked when downloading and using a new IBM Semeru OpenJDK

In our servers, and for development, we use jdk-8-IBM (currently jdk-8-IBM-8.0.6.35) - https://www.ibm.com/docs/en/sdk-java-technology/8

Maybe the error has something to do with downloading indexes (or indexing) this JDK

0

Deleting the System cahce directory didn´t work

Opened https://youtrack.jetbrains.com/issue/IDEA-279214

Thanks Serge Baranov

 

0

Please sign in to leave a comment.