Good day,
I am trying to run a program called graphdb-native-app-8.8.1-jfx.jar
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.
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)
I have also used sudo apt-get install openjfx
to get JavaFX (and also for libopenjfx-java), and made sure it is the newest version by searching for updates:
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]
Yet whenever I try to run the jar, I get the following error:
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
which leads to believe that the linux VM doesn't find javafx anyways or thinks it isn't installed.
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 https://openjfx.io/openjfx-docs/#install-javafx
Any help would be thoroughly appreciated, thanks in advance