Error while using typesafe config

Hello All,

I am getting following error while trying parameter externalization
“Exception in thread “main” java.lang.UnsupportedClassVersionError: com/typesafe/config/ConfigFactory : Unsupported major.minor version 52.0″
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(

I am using
"Eclise Luna Service Release 2 (4.4.2)" on cloudera’s quickstart VM 5.5, with scala and sbt integrated.
java 1.7.0_67
build.sbt file contains–
name := "demo-spark-scala"
version := "1.0"
scalaVersion := "2.11.8"
libraryDependencies += “org.apache.spark” % “spark-core_2.11” % "1.6.2"
libraryDependencies += “com.typesafe” % “config” % “1.3.0”

Please guide me to resolve this.
Thank you.

It is version issue, Do not do this on Cloudera Quickstart. Try to set up the environment on host operating system not virtual machine.

1 Like

Use Java 8. It will resolve the issue