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.
Please sign in to leave a comment.
Hello,
It's possible to configure JDK in "File | Settings | Build, Execution, Deployment | Compiler | Scala Compiler | Scala Compile Server"
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
Please follow the related issues on YouTrack: https://youtrack.jetbrains.com/issue/SCL-13703, https://youtrack.jetbrains.com/issue/SCL-13068