运行错误:项目未在IntelliJ IDEA Ultimate中配置JDK [英] Error running: Project has no JDK configured in IntelliJ IDEA Ultimate

查看:1970
本文介绍了运行错误:项目未在IntelliJ IDEA Ultimate中配置JDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试执行程序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),然后单击ApplyOK.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆