New Java SDK instal error - can not resolve symbol String
已回答
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.
请先登录再写评论。
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 .
I found it. But it is not under Project but under Project structure.
Same error here. Reconfigured Java SDK, Project SDK and Modules SDK, didn't resolve
IntelliJ 2021.2.2
Rafael Please try File | Invalidate Caches | Invalidate and Restart.
IntelliJ IDEA: "cannot resolve symbol" for String, System and other Java classes - Stack Overflow
https://stackoverflow.com/questions/61180304/intellij-idea-cannot-resolve-symbol-for-string-system-and-other-java-classes/61180376#61180376
Same error Serge Baranov
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.
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
Deleting the System cahce directory didn´t work
Opened https://youtrack.jetbrains.com/issue/IDEA-279214
Thanks Serge Baranov