【解决】Maven myeclipse出现Could not find the main class

时间:2023-03-09 03:50:56
【解决】Maven myeclipse出现Could not find the main class

maven报错:maven org/codehaus/plexus/classworlds/launcher/Launcher (Unsupported major.m...)

解决思路如下:

按照以往的经验,做如下检查:

  • 编译环境检查 window->preferences->installed JREs

  • 编译级别检查 右击工程名->properties->java compiler

  • 编译路径检查 右击工程名->build path->coufiguration build path

  • 执行clean     project->clean

我重新搞了一下 jres 就ok 了。

【解决】Maven myeclipse出现Could not find the main class

重新运行maven的命令就ok了。