scalafx/scalafx-hello-world

Error:scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK

AlanKassis opened this issue · 3 comments

I'm using Java 8
I have Scala 2.12.4
using Scalafx 8.0.144-R12
using IntelliJ 2017.3
sbt version 1.0.2

I'm getting error:
Error:scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK sbt: org.scala-lang:scala-library:2.12.4:jar
when I try to debug the scalafx-hello-world example

I can run it from the sbt shell and the UI will display

here's what my build.sbt looks like

image

image
I'm not using OpenJDK
I managed to fix the problem by creating a new project and importing the SBT through Intellij Idea and copy-pasting the code rather than opening straight from Git.

README states to use Java 11 or newer