Unsupported major.minor version 51.0 but everything is set to JDK 1.6
Probably you have a dependency that needs Java 1.7
Probably you have a dependency that needs Java 1.7
You have a version conflict, please verify whether compiled version and JVM of Tomcat version are same. you can do it by examining tomcat startup .bat , looking for JAVA_HOME
This class was compiled with a JDK more recent than the one used for execution. The easiest is to install a more recent JRE on the computer where you execute the program. If you think you installed a recent one, check the JAVA_HOME and PATH environment variables. Version 49 is java 1.5. That means the … Read more
According to maven website, the last version to support Java 6 is 3.2.5, and 3.3 and up use Java 7. My hunch is that you’re using Maven 3.3 or higher, and should either upgrade to Java 7 (and set proper source/target attributes in your pom) or downgrade maven.
Try sudo update-alternatives –config java from the command line to set the version of the JRE you want to use. This should fix it.
You can specify maven source/target version by adding these properties to your pom.xml file <properties> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> </properties>
The problem is because you haven’t set JAVA_HOME in Mac properly. In order to do that, you should do set it like this: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home In my case my JDK installation is jdk1.8.0_40, make sure you type yours. Then you can use maven commands. Regards!
These guys gave you the reason why is failing but not how to solve it. This problem may appear even if you have a jdk which matches JVM which you are trying it into. Project -> Properties -> Java Compiler Enable project specific settings. Then select Compiler Compliance Level to 1.6 or 1.5, build and … Read more
The issue is because of Java version mismatch. Referring to the JVM specification the following are the major versions of classfiles for use with different versions of Java. (As of now, all versions support all previous versions.) Java SE version Major version 1.0.2 45 1.1 45 (Not a typo, same version) 1.2 46 1.3 47 … Read more