No option to run simple Java console application after importing a project from Github
Answered
Hello,
I worked at an computer in the university on an Project which consists only on Java Classes with its own main for console application. I imported this project from an Eclipse project to IntelliJ IDEA and pushed it to Github.
At home I started a new project in IntelliJ with cloning this project from Github.
But there is no possibility to run this project, in the university I could compile and run a file with a right click to start the context menu and clicking on ' Run filename'.
When I click on 'Edit configurations' there is no configuration for simple Java Console Applications (which I found when I start a new project).
How can I get this configuration for my Project from Github?
Please sign in to leave a comment.
See https://stackoverflow.com/a/43319356/104891 and https://stackoverflow.com/a/42660624/104891 for possible issues.
Also check https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-application.html and https://www.jetbrains.com/help/idea/creating-and-editing-run-debug-configurations.html .
Your first link did it.
I changed Project SDK to SDK default, and added a directory for the Compiler Output.
The main step was to mark the 'src' folder as Source.
Now I can work as usual.
Thank you so much!