JDK版本不兼容问题(Unsupported major.minor version 49.0)

【环境信息】

1)维护的系统运行在JDK1.4版本下

2)第三方jar包采用(JDK1.4+)编译

 

【异常信息】

----------------------------------------------------------------------------------------------------------------------------------

Error 500: LinkageError while defining class: org.gjt.mm.mysql.Driver Could not be defined due to: org/gjt/mm/mysql/Driver (Unsupported major.minor version 49.0) This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature.

----------------------------------------------------------------------------------------------------------------------------------

 

【异常分析】

编译用的JDK版本比你运行用的JDK版本高,故报此错误!

 

【解决方案】

 1)更换JDK版本,使之编译和运行用的版本一致

 2)注意:若运行的系统是遗留系统,则降低编译用的JDK版本。

 

【扩展阅读】

又是48,49JDK版本不兼容(Unsupported major.minor version 49.0)(系列一)

又是48,49JDK版本不兼容(Unsupported major.minor version 49.0)(系列二)

你可能感兴趣的:(jdk,mysql)