Which means that the java resides at one of the above paths as for example /usr/bin/java
So, that directory should designate in IntelliJ. You can configure in the Project Structure, press Ctrl + Alt + Shift + S, choose Platform Settings -> SDKs, click on green button (+), select the home directory for JDK.
If you don't happen to have a JDK installed you can download the latest version here
You can unpack it to your home directory so that you don't need extra permissions:
And finally reference your new JDK on IntelliJ:
Alt+ Ctrl + Shift + S - Project
To find the path where java is installed on ubuntu, you can run the following command from terminal:
You may get something like this:
Which means that the java resides at one of the above paths as for example
/usr/bin/java
So, that directory should designate in IntelliJ. You can configure in the
Project Structure
, pressCtrl + Alt + Shift + S
, choosePlatform Settings -> SDKs
, click on green button(+)
, select the home directory for JDK.