java.lang.UnsupportedClassVersionError: com/typesafe/config/ConfigException : Unsupported major.minor version 52.0
Java 8 has major version 52, which means if we run javac command from Java 8 installation, it will by default generate a class with major version 52. However, if we run class file in Java7, we will get "Unsupported major.minor version 52.0".
Solution :
There was a mis configuration in %JAVA_HOME%
java -version
java version "1.8.0_44"@echo %JAVA_HOME%
C:\Program Files\Java\jdk1.7.0_75
To set the path temporary
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_44
@echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_44
No comments:
Post a Comment