Tomcat启动:A fatal error has been detected by the Java Runtime Environment

解决办法:让jvm跳过该方法的编译

 1.如果是MyEclipse下启动服务,则在Window-preference-java-installed jres 里面设置, 在 defalt vm arguments 填入下边的代码就可以了!

 代码:

            -XX:CompileCommand=exclude,org/hibernate/cfg/annotations/SimpleValueBinder,setType

 1)选择使用的JRE,点击编辑edit

Tomcat启动:A fatal error has been detected by the Java Runtime Environment

2)将上边代码粘贴到红色框标记内。点击Finish

Tomcat启动:A fatal error has been detected by the Java Runtime Environment

3)如下图是报错代码:

Tomcat启动:A fatal error has been detected by the Java Runtime Environment