Nightcode
Nightcode copied to clipboard
Nightcode not building on Raspberry Pi
JDK: Oracle JDK 1.8.0_65 Distro: Fully upgraded Rasbian Jessie Nightcode version: Latest from github as of today
I have used earlier versions of Nightcode on Raspberry Pi for coding classes last year. I wanted to upgrade to newest version and found that there is no standalone .jar-file any more and that it is not possible to build Nightcode for Raspberry pi.
'boot build' gives the following error:
Compiling 1/2 nightcode.core...
clojure.lang.ExceptionInfo: java.lang.ClassNotFoundException: javafx.application.Application, compiling:(nightcode/core.clj:1:1)
data: {:file "/tmp/boot.user7083437145616479110.clj", :line 19}
clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: javafx.application.Application, compiling:(nightcode/core.clj:1:1)
java.lang.ClassNotFoundException: javafx.application.Application
...
clojure.core/the-class/invokeStatic genclass.clj: 109
clojure.core/generate-class/invokeStatic genclass.clj: 132
clojure.core/gen-class/invokeStatic genclass.clj: 635
clojure.core/gen-class genclass.clj: 507
...
clojure.core/load/fn core.clj: 6008
clojure.core/load/invokeStatic core.clj: 6007
clojure.core/load core.clj: 5991
...
clojure.core/load-one/invokeStatic core.clj: 5812
clojure.core/compile/fn core.clj: 6018
clojure.core/compile/invokeStatic core.clj: 6018
clojure.core/compile core.clj: 6010
pod$eval64.invokeStatic NO_SOURCE_FILE
pod$eval64.invoke NO_SOURCE_FILE
...
clojure.core/eval/invokeStatic core.clj: 3187
clojure.core/eval core.clj: 3183
boot.pod/eval-in* pod.clj: 437
...
boot.pod/eval-in* pod.clj: 440
boot.task.built-in/fn/fn/fn/fn built_in.clj: 658
boot.core/run-tasks core.clj: 938
boot.core/boot/fn core.clj: 948
clojure.core/binding-conveyor-fn/fn core.clj: 2020
Apparently JavaFX is not included in the Oracle JDK coming with Raspbian.
You can get the .jar for 2.1.6 (latest as of now) and prior versions of NightCode here: https://github.com/oakes/Nightcode/releases
I imagine the JavaFX problem just complicates building from scratch; but just in case it doesn't like the Pi some other way, the latest pre-JavaFX version of NightCode is 1.3.2. It still has Parinfer which is pretty cool.
Just tried 2.3.7 on Raspberry Pi 3. Now openjfx is simply in the repositories. But trying to start NightCode results in a crash, apparently coming from JavaFX. Anything known about this?