源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  用MyEclipse启动tomcat 报错Could not find the main class

用MyEclipse启动tomcat 报错Could not find the main class

分类: 文章 • 2023-04-02 14:43:18

tomcat启动时报错:Java.lang.UnsupportedClassVersionError: Bad version number in .class file

 

原因:编译java时生成的class文件,在运行时用到的JRE和class文件版本不一致造成的。

一般在做项目的时候是由于,用老项目需要低版本的jdk编译造成的。

解决方法如下图所示:

用MyEclipse启动tomcat 报错Could not find the main class

将jdk换成低版本的就ok了。

相关推荐

  • 当安装MyEclipse的时候遇到报错Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
  • MyEclipse启动Tomcat时报错Could not publish the server 解决方法
  • Myeclipse启动Tomcat报错:Could not load the Tomcat server configuration
  • 用MyEclipse启动tomcat 报错Could not find the main class
  • 再启动tomcat时报 Could not find the main class错误
  • myeclipse出现Could not find the main class原因分析
  • @(报错)could not find the main class, Program will exit(已解决)
  • 启动 jack server 出现 Could not find or load main class com.android.jack.launcher.ServerLauncher的问题
  • 当我启动Hadoop时出现“Error:Could find or load main class”
  • Choosing Partners and Scenarios in a Multi-cloud World
  • Cleanup failed to process the following paths错误的解决
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号