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
For project I use jdk 8. It correspondes to 52.0 major version
I set jdkscorretto-1.8.0_412 in IntelliJ IDEA Project Structure. And set this value for JAVA_HOME
What did I miss ?
This answer jdk version does’t help me.