myeclipse启动tomcat会出现 a java exception has occured错误 的解决方法

在浏览器中可以打开tomcat,结果在myeclipse启动tomcat会出现 a java exception has occured错误 ,之后出现一个Classloader.class的文件,关闭tomcat又出现 a java exception has occured错误 。

报错界面:

1、JVM报错,首先查看Java安装,环境变量有没有问题,java和javac命令运行正常。

2、查阅网上资料,可能是版本问题。

3、将tomcat---bin目录下的tomcat-juli.jar包加载到tomcat的paths的第一栏中,就可以了。

如下图:

原文地址:https://www.cnblogs.com/fengxiaolan/p/4375525.html