Hello Stackoverflow Community!
I am facing a problem, when I want to execute my self written JavaFX runnable Jar file program (it is a Chess game).
When I execute the program it needs about ten seconds to start. After the start, when I want to select a piece or the menu items there are two possible options:
- The Gui freezes completely after startup
- I may click on a piece and it needs around 5 sec. to select it and when i want to hover (no self written event) on the JavaFX menubar, the PI freezes for about 5 sec. and then displays the blue hover color.
I have a Raspberry PI 3.
I have currently installed Java Environment: ,,openjdk version "1.8.0_40-internal" ($ java -version)
I added manually the JavaFX files (they are not included in this openjdk version) as it is mentioned at:Gluonhq -section 2.1.4
I run the Jar file with: java -jar Chess.jar -> Chess.jar is jar file
The game runs without these errors on Linux Mint (openjdk version "1.8.0_131") and Windows 10.
I don´t know what is the source of the problem. Maybe JavaFX on the PI is simply not a good idea?!?
Anyway thanks for help,
Alex