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 ?