Start JavaFX application on Banana Pi Pro

690 views Asked by At

I have problem with starting JavaFX application on Banana Pi Pro(Bananian OS) system. From my view the problem in GPU configuration. I have configured it by this instruction http://wiki.lemaker.org/BananaPro/Pi:GPU All things configured for framebuffer version because javaFX executes in framebufer. On appllication start everytime the same error like on picture. This application works without any problems on Raspberry Pi and on Windows system. Can somebody help in this question? enter image description here

After adding additional parameter

enter image description here

1

There are 1 answers

9
Fab On

I had problems some time ago while trying to run JavaFX on ARM with Mali-400 graphic driver. I am unsure if this GPU and its driver is/will be supported, maybe I'm wrong or it will be supported later by OpenJFX developers. In my case it turned out to be an issue of the Mali driver itself.

You can still run the Javafx program using the software renderer, adding -Dprism.order=sw and -Djavafx.platform=fb (try also with other platforms) to the command line. Also, adding -Dprism.verbose=true may help you to follow the steps performed by the underlying JavaFX implementation before saying there is no pipeline for GPU rendering. In any case, JavaFX is not able to use 3D acceleration on your platform.

I already asked in Oracle forums but I got no answers. In the question you'll find additional details. https://community.oracle.com/message/12488945#12488945

Also, you should ensure that 3d acceleration is working on your platform and it is configured correctly on framebuffer and not on X11 only (if active).

Note: Remember that Oracle itself is not supporting JavaFX on ARM any more, due to the large number of different platforms. Also, 3d drivers provided by the manufacturer are probably not open sourced, and from my knowledge Raspberry PI was one of the few ARM platforms that were supported by Oracle's JavaFX. For more info: Java Development Kit for ARM Release Notes 8 Update 33