问题
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