简体   繁体   中英

Raspberry Pi and javaFX command error

I have a question. I´ve created a javaFX application but now i want to run it on my raspberry pi. JDK 1.8.0 is on my raspberry pi so it can run javaFX applications. But what command do I have to use? I hope someone can help me with this problem. Thank you very much already :) Gr. Gilian Joosen

Here is an eample command on how to use the .jar file:

sudo /opt/jdk1.8.0/bin/java -Djavafx.platform=eglfb -cp /opt/jdk1.8.0/jre/lib/jfxrt.jar:/home/pi/javafx-samples-8.0.0-ea/StopWatch.jar stopwatch.MainScreen

The first part of the command (/opt/jdk1.8.0/bin/java) contains the address where you have installed java on RPi and the second part (/home/pi/javafx-samples-8.0.0-ea/StopWatch.jar) contains the address of the saved .jar file which is followed by it's class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM