Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install and excute mqtt-spy 1.0 not working #88

Open
riker65 opened this issue Sep 10, 2020 · 2 comments
Open

install and excute mqtt-spy 1.0 not working #88

riker65 opened this issue Sep 10, 2020 · 2 comments

Comments

@riker65
Copy link

riker65 commented Sep 10, 2020

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

@riker65 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
@SvenLuebke
Copy link

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

@devcpu
Copy link

devcpu commented Dec 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants