Reputation: 1320
I'm trying to use Scalafx in project.
Dependencies are:
ThisBuild / scalaVersion := "2.12.1"
libraryDependencies += "com.google.code.findbugs" % "jsr305" % "3.0.2"
libraryDependencies += "org.scalafx" %% "scalafx" % "22.0.0-R33"
And I got the the following exception:
java.lang.UnsupportedClassVersionError: javafx/application/ColorScheme has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I use Java 8 for this project. It corresponds to the 52.0 major version
I set jdks\corretto-1.8.0_412 in IntelliJ IDEA Project Structure. And set this value for JAVA_HOME
What did I miss?
This answer jdk version doesn't help me.
Upvotes: 0
Views: 27