HarrySatt
Posts: 1
Joined: Tue Aug 04, 2015 2:47 pm

JavaFX

Wed Feb 24, 2016 11:03 am

Hi
anyone got Open JavaFX app running on Raspberry Pi 2? some hints. If I run a test programm named JavaFXApp1.jar as created from the NetBeans enviroment I always get the message that tells me that some Error: Mainclass JavaFXApp1 could not be found or loaded.

Thanx in advance, harald

ReneA56
Posts: 1
Joined: Sun Feb 28, 2016 10:49 am

Re: JavaFX

Sun Feb 28, 2016 11:02 am

Yes, I've managed to install jdk8 (sudo apt-get install oracle-java8-jdk) and installed OpenJfx (see section 2.1.4 of http://docs.gluonhq.com/javafxports/). Tip: boot to graphical UI and add a menu item for your JavaFX application to run. Use a command like "sudo java -jar <directory>/<yourjava>.jar".
In this way I was able to run the JavaFX example Ensemble8.jar as well as my own home cooked JavaFX application (which included a pre-loader).
Beware: Raspberry is considered to be an embedded device: not all JavaFX features are enabled, see bottom page of https://docs.oracle.com/javase/8/javafx ... /embed.htm

eluchsinger
Posts: 1
Joined: Thu Apr 07, 2016 7:51 pm

Re: JavaFX

Thu Apr 07, 2016 7:53 pm

That error is because of JavaFX? I am really really really desperate and worried, because I can't solve it. It's a small JavaFX application. And I NEED to run it, my time's running up!

Return to “Java”