title: Setting java SDK for IntelliJ project
body: <p>So I have a java project that I opened using IntelliJ. However I am getting the following error</p>
  
  <p><code>cannot resolve symbol string</code></p>
  
  <p>I checked <strong>file->project_structure</strong> and found that the project SDK is invalid</p>
  
  <p><a href="https://i.stack.imgur.com/jvcbP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jvcbP.png" alt="enter image description here"></a></p>
  
  <p>So I tried to add java sdk to the project. I followed the instruction mentioned <a href="https://stackoverflow.com/questions/16931327/where-is-the-java-sdk-folder-in-my-computer-ubuntu-12-04">here</a> and found that my SDK path is </p>
  
  <p><code>/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java</code></p>
  
  <p>However when I try to add and SDK using that link I get the following error message</p>
  
  <p><a href="https://i.stack.imgur.com/NtF9N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NtF9N.png" alt="enter image description here"></a></p>
  
  <p>I am not sure I understand where is the problem .. any suggestions ?</p>