Run button is greyed out - intellij

爷,独闯天下 提交于 2021-01-01 02:43:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!