Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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 (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.
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 !!
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.