Open riker65 opened 4 years ago
Hi!
If you are using OpenJDK (I use it as well) you have to separately install OpenJFX (I use version 15) as well. https://openjfx.io/openjfx-docs/#install-javafx documents the important steps. After installation I called mqtt-spy (Windows) with: java --module-path %PATH_JFX% --add-modules javafx.controls,javafx.fxml -jar mqtt-spy-1.0.1-beta-b18-jar-with-dependencies.jar
and it's started then.
Best regards, Sven
Hi!
similar problem here ...
After, I installed openjfx to /usr/local/javafx-sdk-19, I run
export PATH_TO_FX=/usr/local/javafx-sdk-19/lib
java --module-path $PATH_TO_FX --add-modules javafx.controls,javafx.fxml -jar ./mqtt-spy-1.0.0.jar
I got no longer java.lang.NoClassDefFoundError: javafx/application/Application but now on both openjdk-18 and oracle-java-19 I got
java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
Then I add java.xml.bind (--add-modules javafx.controls,javafx.fxml,java.xml.bind)
And get
java.lang.module.FindException: Module java.xml.bind not found
No idea how and where I can get the missing libs and put them in cmd line. As far I understand, java.xml.bind is no longer in java.
Until now I was very satisfied with mqtt-spy in opposite to other tools.
Hi
still having the problem on Ubuntu 20.04 to get mqtt-spy-1.0.jar executed.
~/mqtt-spy$ java -jar mqtt-spy-1.0.0.jar Error: Could not find or load main class pl.baczkowicz.mqttspy.Main Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
looks like an old problem but did not find a new solution
java-version
java -version openjdk version "14.0.1" 2020-04-14 OpenJDK Runtime Environment (build 14.0.1+7-Ubuntu-1ubuntu1) OpenJDK 64-Bit Server VM (build 14.0.1+7-Ubuntu-1ubuntu1, mixed mode, sharing)
any new working solution
Thanks T