1

When trying to run a JavaFX app from Raspberry Pi B+ device running Raspbian the UI does not show up unlike when running from a PC.

The command invoked was:

java -jar app.jar

enter image description here

What could be the problem that the UI does not show up?

2 Answers 2

2

The solution is to run with this command:

sudo java -Djavafx.platform=eglfb -cp /opt/jdk1.8.0_111/jre/lib/jfxswt.jar:app.jar com.app.MainApp

After doing something similar to this:

Sign up to request clarification or add additional context in comments.

Comments

0

I guess the user, who is executing the program, has no reading access on the css files. According to that the GUI can't be loaded.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.