Eclipse error “Could not find or load main class”

后端 未结 26 1520
爱一瞬间的悲伤
爱一瞬间的悲伤 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:57

    Found This while searching, and it was after I updated my Java that the problem seemed to occur.

    In Eclipse from your project:

    Right-click on your project
    Click Properties
    Java build path: Libraries; Remove the "JRE System Library[J2SE 1.4]"
    Click Add Library -> JRE System Library
    Select the new "Execution Environment" or Workspace default JRE
    

提交回复
热议问题