Error: Project does not have a JDK configured in IntelliJ IDEA Ultimate

When I try to execute ergo program, it gives me an error.

Error: There is no JDK configured in the project

Can someone help me? I am new to IntelliJ IDEA.

+4
source share
1 answer

1) Open Project Structurethe menu Fileor use the shortcutctrl+alt+shift+S

2) SDKsis under Platform Settings. Select it and click green + at the top of the window.

3) Set the path to the JDK home directory (for example: /usr/lib/jvm/java-1.8.0-openjdk-amd64) and click Applyand OK.

Now you can execute your program.

enter image description here

+3
source

All Articles