This means that you compiled with a later version of Java than you are running with. I believe this one is compiling with Java 8 and running with Java 7. If you are compiling at the command line, you can type javac -target 1.6. If you are using an IDE, the target version of Java is a preference in the properties. If you can't find it, post what you are using to compile/build the ear.