Trouble with IntelliJ IDEA community and Java SDK

The main issue occurs when I try to select the project SDK.

I navigate to /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0 within the “Select Home Directory” of intelliJ, but when I click on the SDK to set it I get the message: “The selected directory is not a valid home for JDK”

What am I missing? I didn’t install anything other than IntelliJ, since I noticed that the java SDK’s were already installed by default in the software manager.

Fixed it, I guess I did have to install the SDK again.

downloaded jdk-8u92-linux-x64.rpm from the oracle website

then ran

sudo zypper in <download path>/jdk-8u92-linux-x64.rpm

and it worked.