Wednesday, October 5, 2016

Unsupported major.minor version 52.0 Error in Java

Error: - Unsupported major.minor version 52.0 Error in Java

Issue: - This kind of issue comes when you have compiled the code using "Java 1.8" and trying to run it on lower version of JRE e.g. 1.7, 1.6


Troubleshoot: - 


  • Check the Java version: - Go to command prompt and type echo %JAVA_HOME%


  • Update “JAVA_HOME” path to “Java 1.8”
  • In case if you are working on eclipse than first check the “Project -->Properties-->Java Build Path -->Library”. It should have jdk1.8 included in the library

  • The next thing you should check while working in eclipse is the “Java Compiler”. Goto “Project-->Properties-->Java Compiler” and then select “Enable Project specific Setting”. Set JDK compliance to “1.7”

0 comments:

Post a Comment