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

Deadly 提交于 2020-01-21 04:21:19

问题


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 IntelliJ IDEA.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/37900005/error-running-project-has-no-jdk-configured-in-intellij-idea-ultimate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!