Eclipse error “Could not find or load main class”

后端 未结 26 1453
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 01:31

I know there are many duplicates of this question, but I have looked at them all, and none of them have solved the issue.

I am trying to run a class that has a main

相关标签:
26条回答
  • 2020-12-07 01:59

    Had the same problem, struggling with it for a while: couldn't find main class.

    I did Project -> Clean -> Clean all Projects

    Cleaned everything, and tada, it compiled!

    0 讨论(0)
  • 2020-12-07 01:59

    If you are using maven Project...

    First please clean your project. then installed maven- if build success then run your project.

    then project will be working fine.

    thanks

    0 讨论(0)
提交回复
热议问题