Hi, I have a problem running Java FX code. I use Ubuntu 22.04.03 and openjdk 17.0.10 .
I downloaded javafx from the link here
Then, according to its documentation, I typed this command in the terminal:export PATH_TO_FX=Downloads/program/javafx-sdk-22/lib
Now, in another folder where there is HelloFX.java file, I type this command:avac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java But it gives the following error:**error: module not found: javafx.controls 1 error**
I searched a lot and all the sites told me to do the same and use it, but I couldn't.