Reputation: 3085
So I have a java project that I opened using IntelliJ. However I am getting the following error
cannot resolve symbol string
I checked file->project_structure and found that the project SDK is invalid
So I tried to add java sdk to the project. I followed the instruction mentioned here and found that my SDK path is
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
However when I try to add and SDK using that link I get the following error message
I am not sure I understand where is the problem .. any suggestions ?
Upvotes: 3
Views: 2327
Reputation: 2215
You're pointing IntelliJ IDEA to the "bin" directory of the JDK's JRE, while IntelliJ IDEA wants you to specify the "home" directory of the JDK. The valid path would be /usr/lib/jvm/java-8-openjdk-amd64
Upvotes: 2