Error running: Project has no JDK configured in IntelliJ IDEA Ultimate

后端 未结 2 1558
礼貌的吻别
礼貌的吻别 2021-01-04 10:29

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

Error running: Project has no JDK configured

Can anybody help me? I\'m newbie in

相关标签:
2条回答
  • 2021-01-04 10:33

    1) Open Project Structure present under File menu or use shortcut ctrl+alt+shift+S

    2) SDKs is located under Platform Settings. Select it and click the green + up the top of the window.

    3) Set JDK home directory path (e.g.: /usr/lib/jvm/java-1.8.0-openjdk-amd64) and click on Apply and OK.

    You should be able to execute your program now.

    0 讨论(0)
  • 2021-01-04 10:44

    open File -> Project Structure, under project SDK, where it says no JDK select dropdown and check if they are any JDKs available, select available JDK then click Apply then OK, your project should run now.

    0 讨论(0)
提交回复
热议问题