Jdk 7 env scala test not working in latest idea

Answered

My project jdk is 1.7 and latest idea uses jdk 8. When I run a scala unit test in idea it uses the Scala runner and since it is jdk 8 based it does not work with jdk 7 and gives the class version error. What is the workaround as I expect it to work based on project jdk.

0
3 comments

Hello,

It's possible to configure JDK in "File | Settings | Build, Execution, Deployment | Compiler | Scala Compiler | Scala Compile Server"

0
Avatar
Permanently deleted user

Thanks but that I have already tried that and this error still remains -

/home/Programs/jdk1.7.0_25/bin/java -javaagent:/home/Programs/idea-IC-183.4284.148/lib/idea_rt.jar=43977: org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner -s uk.co.agent.ClickAndCollectTest -C org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestReporter -showProgressMessages true
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jetbrains/plugins/scala/testingSupport/scalaTest/ScalaTestRunner : Unsupported major.minor version 52.0

0

Please sign in to leave a comment.