Reputation: 527
I've spent nearly a day trying to figure out why when I run a JavaFX .jar on my Raspberry Pi, it wont open up the UI. I'm sure its something with my command to launch it. I've been working off of this tutorial:
But cannot figure out what the "stopwatch.mainscreen" argument is for at the end.
/opt/jdk1.8.0/bin/java -cp Stopwatch.jar stopwatch.MainScreen
thanks for any help you smart smart people can provide!
Upvotes: 2
Views: 1557
Reputation: 21
Regarding "OpenJFX on the Raspberry PI" tutorial you mentionned, you can figure the main class to execute for each demo sample by looking into provided java source (in src directory).
Here are the commands with right main classes to execute for each samples working on Raspberry PI :
For your "glGetError 0x505" error, it means "out of video memory", so you have to increase memory amount allocated to your Raspberry's GPU, using raspi-config utility, which you can run with this command :
Navigate to Advanced Options -> Memory Split, and specify 128 or 256 (64Mb aren't enough for provided samples) then reboot.
Again, as Thomas explained it, be sure you're running these samples in text-mode console, since they won't work when you're running graphical desktop (startx).
Upvotes: 2
Reputation: 1401
stopwatch.MainScreen is the class to execute and -cp is the class path. You need to be sure you're not using X11 since JFX only supports Framebuffering.
Upvotes: 2