运行错误:项目未在IntelliJ IDEA Ultimate中配置JDK [英] Error running: Project has no JDK configured in IntelliJ IDEA Ultimate
问题描述
当我尝试执行程序ergo时,它给我一个错误.
When I try to execute program ergo, it gives me an error.
运行错误:项目未配置JDK
有人可以帮助我吗?我是IntelliJ IDEA的新手.
Can anybody help me? I'm newbie in IntelliJ IDEA.
推荐答案
1)打开File
菜单下显示的Project Structure
或使用快捷键ctrl+alt+shift+S
1) Open Project Structure
present under File
menu or use shortcut ctrl+alt+shift+S
2)SDKs
位于Platform Settings
下.选择它,然后单击窗口顶部的绿色+.
2) SDKs
is located under Platform Settings
. Select it and click the green + up the top of the window.
3)设置JDK主目录路径(例如:/usr/lib/jvm/java-1.8.0-openjdk-amd64),然后单击Apply
和OK
.
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.
这篇关于运行错误:项目未在IntelliJ IDEA Ultimate中配置JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!