cvogt / cbt

CBT - fun, fast, intuitive, compositional, statically checked builds written in Scala
Other
488 stars 60 forks source link

ScalaFX only runs once when not running directly on JVM #94

Open mchav opened 8 years ago

mchav commented 8 years ago

cbt run on a ScalaFx project works fine the first time. Trying to run it again throws the following illegal state exception: java.lang.IllegalStateException: Application launch must not be called more than once Likely because Nailgun keeps the instance of JavaFX alive.

cvogt commented 8 years ago

Maybe we should support forking the JVM. The code to do this would be similar to

https://github.com/cvogt/cbt/blob/d21fa548ff16537e98f90b4cd4adadd942dd1f05/stage2/Lib.scala#L248-L257

and analog to

java -cpcbt classpath cbt mainClass``