i want to learn javaFX
but online sources only show installation and setup in an IDE like: Netbeans
, Eclipse
, IntelliJ
etc.
but i want to do it without IDE
ie : using only Terminal and a text editor(vim).
what is the steps to set up JavaFX
for a projects and run it without any IDE.
JDK version:- 11.0.4
Os :- Parrot OS
sudo apt install openjdk-11-jdk
JAVA_HOME
environment variable to the JDK installation directory (this answer would help)PATH_TO_FX
environment variable by the same way as above but the path should point to /lib
eg: export PATH_TO_FX=path/to/javafx-sdk-11/libjavac --module-path $PATH_TO_FX --add-modules javafx.controls [filename].java
java --module-path $PATH_TO_FX --add-modules javafx.controls [filename]