问题
I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem?
PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all.
回答1:
This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited completely. Check your running processes for java applications and see if it exists.
回答2:
Open the source code, right-click and hit run using the option run "filename.java".
IntelliJ will make the configuration for you and then you can click the run button after the configuration is made by the IDE.
Same thing for debug configuration.
回答3:
Try to start the program again via >Run in the menu bar.
来源:https://stackoverflow.com/questions/61034359/run-button-is-greyed-out-intellij