title: Cannot run jar on ubuntu with JFX
body: <p>Good day,
  I am trying to run a program called <code>graphdb-native-app-8.8.1-jfx.jar</code> on a ubuntu virtual machine. I have the latest version of java installed, and have made sure JAVA_HOME is set to the correct java-version.</p>
  
  <pre><code>java -version
  java version "11.0.2" 2019-01-15 LTS
  Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
  Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
  </code></pre>
  
  <p>I have also used <code>sudo apt-get install openjfx</code> to get JavaFX (and also for libopenjfx-java), and made sure it is the newest version by searching for updates:</p>
  
  <pre><code>sudo apt list --installed| grep jfx
  libopenjfx-java/bionic,now 8u161-b12-1ubuntu2 all [installed] 
  libopenjfx-jni/bionic,now 8u161-b12-1ubuntu2 amd64 [installed]
  openjfx/bionic,now 8u161-b12-1ubuntu2 amd64 [installed]
  </code></pre>
  
  <p>Yet whenever I try to run the jar, I get the following error:</p>
  
  <pre><code>sudo /usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar ./graphdb-native-app-8.8.1-jfx.jar
  Error: Could not find or load main class com.ontotext.graphdb.free.GraphDBFree
  Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
  </code></pre>
  
  <p>which leads to believe that the linux VM doesn't find javafx anyways or thinks it isn't installed.</p>
  
  <p>I have scoured stackoverflow for similar questions, but most of them are solved by installing openjfx like I did. Others commence with their own .java files they want to compile and run with jfx and are solved by following the guides in <a href="https://openjfx.io/openjfx-docs/#install-javafx" rel="nofollow noreferrer">https://openjfx.io/openjfx-docs/#install-javafx</a></p>
  
  <p>Any help would be thoroughly appreciated, thanks in advance</p>