Simple Example

build.sbt

There are two ways to define the MainClass for your JavaFx Application:

SBT
name := "sbt-javafx-simple"

organization := "com.quadstingray"

version := "0.1"

scalaVersion := "2.12.8"

enablePlugins(JavaFxPlugin)

mainClass := Option("com.quadstingray.javafx.sample.HelloApp")
JavaFX
name := "sbt-javafx-simple"

organization := "com.quadstingray"

version := "0.1"

scalaVersion := "2.12.8"

enablePlugins(JavaFxPlugin)

javaFxMainClass := "com.quadstingray.javafx.sample.HelloApp"

/project/plugin.sbt

addSbtPlugin("com.quadstingray" % "sbt-javafx" % "1.5.2")

For debug activate

javaFxVerbose := true