3

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

enter image description here

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

enter image description here

I am not sure I understand where is the problem .. any suggestions ?

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.