When trying to compile an JavaFX application in the environment:
java -version
openjdk version \"1.8.0_212\"
OpenJDK Runtime Environment (build 1.8.0_212-8u2
For any learners looking for a bit of basic practice with javafx, installing Oracle's Java 8 (which has javafx built-in) might be a better solution then messing about with open packages. There are great instructions here
You can continue efforts getting openjfx installed, but this will keep your learning going.
This has already been suggested by aran in a comment to the OP, please consider upvoting that comment.