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) 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 (eg: /usr/lib/jvm/java-1.8.0-openjdk-amd64) and click on Apply
and OK
.
You should be able to execute your program now.
打开文件 -> 项目结构,在项目 SDK 下,它说没有 JDK选择下拉列表并检查它们是否有任何可用的 JDK,选择可用的 JDK 然后单击应用然后确定,您的项目现在应该运行。
First, close IDE and follow this step:
1. You can delete these folders in the project structure:
.gradle
.idea
build
2. Then open IDE and reimport the project. Hopefully resolved !!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.