javafx install mac not working code example

Example 1: javafx install mac not working

javac --module-path %PATH_TO_FX% --add-modules javafx.controls,javafx.fxml HelloFX.java

Example 2: javafx install mac not working

javac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java

Example 3: javafx install mac not working

javac --module-path %PATH_TO_FX% --add-modules javafx.controls HelloFX.java

Example 4: javafx install mac not working

set PATH_TO_FX="path\to\javafx-sdk-14\lib"

Example 5: javafx install mac not working

export PATH_TO_FX=path/to/javafx-sdk-14/lib

Example 6: javafx install mac not working

javac --module-path $PATH_TO_FX --add-modules javafx.controls,javafx.fxml HelloFX.java

Example 7: javafx install mac not working

$ java -version
openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)