JavaFX on Raspberry Pi: runfxapp

Running JavaFX Apps on RaspberryPi with JDK 8 needs still some command “overhead” like:

sudo /opt/jdk1.8.0/bin/java -Djavafx.platform=eglfb -cp \ 
/opt/jdk1.8.0/jre/lib/jfxrt.jar:/tmp/JavaFXSamples/Stopwatch.jar \ 

To start apps more conveniently I wrote a small bash-skript:
(as shell-skript code is ugly I skip posting it here ;-))

Copy this skript to somewhere on $PATH (e.g. /usr/local/bin) and set execution rights:

sudo chmod 755 /usr/local/bin/runfxapp

Then Apps can be executed like:

runfxapp -j /home/pi/apps/StopWatch.jar stopwatch.MainWindow

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 thoughts on “JavaFX on Raspberry Pi: runfxapp”

  1. Pretty element of content. I just stumbled upon your site and in accession capital
    to assert that I get in fact enjoyed account your blog posts.
    Anyway I will be subscribing in your augment and even I achievement you get entry to
    constantly quickly.