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

简介: maven报错:maven org/codehaus/plexus/classworlds/launcher/Launcher (Unsupported major.m...)   解决思路如下:   按照以往的经验,做如下检查:   编译环境检查 window->prefe...

 

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的命令就ok了。

目录
相关文章
|
1天前
|
安全 Windows
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
28 1
|
7月前
|
Java 数据库连接 网络安全
已解决 IDEA Maven 项目中 “Could not find artifact“ 问题的常见情况和解决方案
已解决 IDEA Maven 项目中 “Could not find artifact“ 问题的常见情况和解决方案
4231 0
|
9月前
|
Java Apache Maven
Maven 的Could not calculate build plan错误解决方法(不一定适用,看原因)
Maven 的Could not calculate build plan错误解决方法(不一定适用,看原因)
|
6月前
|
Java Maven
idea中maven打包工具类 repackage failed: Unable to find main class
idea中maven打包工具类 repackage failed: Unable to find main class
87 1
|
10月前
|
缓存 Java Maven
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
1334 0
|
11月前
|
Java Maven
Maven中Could not transfer artifact xxx from/to xxx问题(附镜像云配置)
Maven中Could not transfer artifact xxx from/to xxx问题(附镜像云配置)
336 0
|
Java Maven
maven项目右键new没有java class
maven项目右键new没有java class
maven项目右键new没有java class
|
Java Maven Android开发
springMvc22-eclipse创建Maven项目没有src/main/java并不能新建的问题
springMvc22-eclipse创建Maven项目没有src/main/java并不能新建的问题
488 0
|
Java Apache Maven
Eclipse创建maven项目时,出现Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources错
Eclipse创建maven项目时,出现Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources错
268 0
Eclipse创建maven项目时,出现Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources错
|
Java Maven
Maven - Could not find artifact
Maven - Could not find artifact
918 0