Java launch error selection does not contain a main type

后端 未结 3 1988
生来不讨喜
生来不讨喜 2020-12-17 10:00

I am a total newbie in Java and Eclipse. I googled for lots of help but still confused. From Eclipse I click run then choose Java application and I get this error immediatel

3条回答
  •  暖寄归人
    2020-12-17 10:42

    I also experienced this problem and could solve it. The solution was not mentioned yet.

    In my case I'm working in Eclipse with Xtend and I converted the project to maven. After that there was a source-exclusion entry in your classpath file:

    
    

    Then you just need to delete this line and do a clean build.

提交回复
热议问题