JavaFX
I am not sure how JavaFX is used with coatjava. However, it was recommended that it be installed.
- Download JavaFX from the JavaFX runtime hyperlink on the page https://openjfx.io/openjfx-docs/#install-javafx Follow the link under "JavaFX runtime". I downloaded the SDK for my Mac.
- The download is a folder with the library files. Copy this folder into a useful location on your computer. I choose to move it to the Utilities/ on my Mac.
- Create the environment variable $PATH_TO_FX. I used the command "export PATH_TO_FX=/Applications/Utilities/javafx-sdk-11.0.2/lib/". You should put this in your .bashrc or /etc/bashrc.
- To test the libraries,
- download the HelloFX.java from "git clone https://github.com/openjfx/samples.git".
- cd in samples/HelloFX/CLI/hellofx
- compile the code "javac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java"
- run the code, "java --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX"
- A small window will open and print a "Hello World" message