Closed carloshm closed 3 years ago
Hey thanks for the PR! Although I think installing JavaFX shouldn't be necessary as it is already included in the jar along with the other dependencies.
What happens if you run on Java 11+ without JFX?
@SonarSonic it failed :(
$ java -version openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-post-Raspbian-1deb10u1) OpenJDK Server VM (build 11.0.11+9-post-Raspbian-1deb10u1, mixed mode)
$ java -jar DrawingBotV3-1.0.11-stable-all.jar
OpenJDK Server VM warning: You have loaded library /home/pi/.openjfx/cache/15/libprism_es2.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c
$ sudo update-alternatives --config java
$ java -version
openjdk version "13-BellSoft" 2019-09-17
OpenJDK Runtime Environment (build 13-BellSoft+33)
OpenJDK Server VM (build 13-BellSoft+33, mixed mode)
$ java -jar DrawingBotV3-1.0.11-stable-all.jar
may. 03, 2021 7:55:27 P. M. drawingbot.FXApplication start
INFORMACIÓN: Loading Configuration
may. 03, 2021 7:55:29 P. M. drawingbot.files.ConfigFileHandler setupConsoleOutputFile
INFORMACIÓN: Renamed old output file
may. 03, 2021 7:55:29 P. M. drawingbot.files.ConfigFileHandler setupConsoleOutputFile
INFORMACIÓN: Renamed old log file
may. 03, 2021 7:55:29 P. M. drawingbot.FXApplication start
INFORMACIÓN: Loading API
may. 03, 2021 7:55:29 P. M. drawingbot.FXApplication start
INFORMACIÓN: Loading Registry
may. 03, 2021 7:55:36 P. M. drawingbot.FXApplication start
INFORMACIÓN: Init DrawingBotV3
may. 03, 2021 7:55:36 P. M. drawingbot.FXApplication start
INFORMACIÓN: Init Observable Drawing Set
may. 03, 2021 7:55:37 P. M. drawingbot.FXApplication start
INFORMACIÓN: Loading Json Files
may. 03, 2021 7:55:46 P. M. javafx.scene.Scene
I'm getting a similar error on a macbook pro with M1 (arm). I installed a x86 version of the jdk which worked, but has some graphical glitches.
Installing a native arm jdk that included javafx seemed to solve the issue:
https://bell-sw.com/pages/downloads/#/java-16-current (choosing full jdk)
@AurelioB @carloshm Thank you both for your pull requests & time - as I'm unfamiliar with these platforms is there a way I could simplify the two explanations and to cover all arm processors? For example you mention different versions of the JDK are mentioned, do they both work on Liberica JDK 16 & 11?
Added steps for Raspberry PI installation (Raspbian GNU/Linux 10 (buster)) to include JavaFX support.![image](https://user-images.githubusercontent.com/2389573/116900133-b0d7a280-ac38-11eb-8baa-a709028c0c61.png)