I had a similar problem, denoted by your first screen post. The issue is when the bridge is invoked, it needs to know where the JFX files reside. You need to set your PATH_TO_FX so the program will find the JFX files. When you turn on the terminal, it opens a bash script, it is called .bashrc, at the end of this file I placed both the JAVA_HOME and PATH_TO_FX - (Below are examples using paths on my system, yours will probably be different)
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64/bin
export PATH_TO_FX=/usr/lib/jvm/java-11-openjdk-arm64/javafx/lib