You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
riker65
changed the title
install and excute mqtt-sky 1.0 not working
install and excute mqtt-spy 1.0 not working
Sep 29, 2020
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
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
The text was updated successfully, but these errors were encountered: