Error occurred during deployment: Exception while deploying the app : UnsupportedClassVersionError

喜你入骨 提交于 2019-12-11 14:56:01

问题


                               An error has occurred

Error occurred during deployment: Exception while deploying the app [EnterpriseApplication1] : UnsupportedClassVersionError: Class mn.interactive.module.meta.dao.MetaDataDao has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.7.0_02. Please see server.log for more details.

When upload EnterpriseApplication1.ear file into GlassFish Service. How to solve this error?


回答1:


You are executing your GlassFish with 1.7.0_02 - but maybe you compiled it with a JDK 8?

You can execute older java classes in newer JREs, but not the other way round. So just install a recent JRE or explicitely start you GlassFish (or the IDE it is running in) with the JDK you use for compiling your code.



来源:https://stackoverflow.com/questions/24652108/error-occurred-during-deployment-exception-while-deploying-the-app-unsupporte

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!