Main class not found in IntelliJ although project was fine recently
已回答
I have a project that was working fine until recently. Suddenly, I am getting the error message "Main class not found". Attempts to fix the issue using the configuration dialog have been unsuccessful. Even navigating to the exact file that contains the main class does not work. I attach three images: the Edit Configuration dialog, the top half and bottom half of the Project panel. The correct class that contains the main() method is ReversiGUI.


请先登录再写评论。
Source roots are not configured correctly, please see http://stackoverflow.com/a/42660624/104891.