Adding Typesafe Config to my sbt build breaks everything - ideas why?

It’s the strangest thing, if I add the typesafe config (1.3.0) to my build - because I want to be explicit about the fact that I am using it - I get an error:

[error] Uncaught exception when running com.cigna.test.Test: java.lang.UnsupportedClassVersionError: com/typesafe/config/ConfigFactory : Unsupported major.minor version 52.0

sbt.ForkMain$ForkError: com/typesafe/config/ConfigFactory : Unsupported major.minor version 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at io.gatling.core.config.GatlingConfiguration$.load(GatlingConfiguration.scala:73)

at io.gatling.app.Gatling.start(Gatling.scala:61)

at io.gatling.app.Gatling$.fromArgs(Gatling.scala:52)

at io.gatling.sbt.GatlingTask.liftedTree1$1(GatlingTask.scala:49)

at io.gatling.sbt.GatlingTask.execute(GatlingTask.scala:48)

at sbt.ForkMain$Run$2.call(ForkMain.java:294)

at sbt.ForkMain$Run$2.call(ForkMain.java:284)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Any ideas why I am getting that? Is there some kind of conflict between the one that Gatling is importing and the one I am importing?

Simple: latest Typesafe config requires JDK8, you’re on JDK7.

So I am! I had installed 8, but I didn’t install the right one, so my terminal (I’m on a mac) was still 7 and I didn’t realize it. Thanks!