Download Java project can not run for class mian

Downloaded to the local repository GitHub project opened, after the adoption of IDE (Eclipse) import, found that only the src directory under the project directory, there is no JRE System Library package, there are obviously open class main method, right-click the run as they did not see Java Application,

Solution
Right Project -> Properties -> Project Facets - > Revert -> check the java -> OK
last appeared run as java Application

Guess you like

Origin www.cnblogs.com/hellostronger/p/12603163.html