Scala and JDK 11

I start a new project and I am wondering if it is worth to use JDK 11 or if I should for now stay on JDK 8. I will use JavaFX/OpenJFX (which is prepared for Java modules). Will I run into problems because of JDK 9 JEPs?

I’m building openstrat using JavaFx on Linux JDK 11 and 13. This is working with Sbt

libraryDependencies += "org.openjfx" % "javafx-controls" % "13"

but I haven’t got it working with MIll

def ivyDeps = Agg(ivy"org.openjfx:javafx-controls:13")

I haven’t tried JDK 14 yet and I haven’t properly tested on windows with JDK 11+.

1 Like

Thank you for sharing this!

Did you have any problem with linking against modules during runtime? That’s what I am mostly afraid of.

I’m using jdk-13 (OpenJDK) and always use --add-modules ALL-SYSTEM
Apart form that, no problems

official doc page on this is

1 Like

I read this page.