In Eclipse, I created an EAR project related to ejb and model. I started the EAR and got the following error:
cannot deploy earkmz
deploy does not work = Error during deployment: exception when deploying the application [earkmz]: UnsupportedClassVersionError: class it.j2ee.kmZ.business.impl.JPACartService has unsupported major or minor version numbers that are greater than those found in the Java Runtime Environment version 1.6. 0_43. See server.log for more information.
I have only one JRE in my system (1.6.0_43), so it is impossible that I compiled my classes incorrectly with another version of the JDK.
I checked that my settings were under Window > Preferences > Java > Compiler > Compiler compliance level > 1.6.
My project classes were copied to another project, but I tried to write them from scratch, and the result will be the same. What am I missing here?
source
share