kamilfb / mqtt-spy

Please use the new Eclipse Paho GitHub repo instead.
https://github.com/eclipse/paho.mqtt-spy/wiki
345 stars 68 forks source link

Error: Could not find or load main class pl.baczkowicz.mqttspy.Main #103

Closed TLaren closed 8 years ago

TLaren commented 8 years ago

Not sure if this is the right place to ask? Running on Raspberry Pi 2 "Raspbian GNU/Linux 8 (jessie)" Java version "1.8.0_65" Running from the command line: java -jar mqtt-spy-0.5.4-jar-with-dependencies.jar I get: Error: Could not find or load main class pl.baczkowicz.mqttspy.Main

Any suggestions?

Tim

kamilfb commented 8 years ago

Hi @TLaren. Please take a look at https://github.com/kamilfb/mqtt-spy/wiki/GettingStarted and https://github.com/kamilfb/mqtt-spy/issues/88. If still struggling after that let me know.

TLaren commented 8 years ago

Still no luck. Tried on a Windows box and it’s up.

Thanks, will try later to get it running on the Pi

Tim

From: Kamil Baczkowicz [mailto:notifications@github.com] Sent: Thursday, October 06, 2016 2:34 AM To: kamilfb/mqtt-spy mqtt-spy@noreply.github.com Cc: TLaren timl@instanet.com; Mention mention@noreply.github.com Subject: Re: [kamilfb/mqtt-spy] Error: Could not find or load main class pl.baczkowicz.mqttspy.Main (#103)

Hi @TLaren https://github.com/TLaren . Please take a look at https://github.com/kamilfb/mqtt-spy/wiki/GettingStarted and #88 https://github.com/kamilfb/mqtt-spy/issues/88 . If still struggling after that let me know.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kamilfb/mqtt-spy/issues/103#issuecomment-251913089 , or mute the thread https://github.com/notifications/unsubscribe-auth/AGPKnEEzq32zf57r0hIX_BXAzcMeSZXFks5qxMCWgaJpZM4KPlOV . https://github.com/notifications/beacon/AGPKnGD60IDuD2XD4BNJVt1v8rttPlgUks5qxMCWgaJpZM4KPlOV.gif

kamilfb commented 8 years ago

hi @TLaren. any more luck?

kamilfb commented 8 years ago

Seems like Java on RPi is missing JavaFX support by default.

Found something on SO: http://stackoverflow.com/questions/36961054/can-javafx-be-used-on-raspberry-pi

Downloading the Gluon SDK and copying the jfxrt.jar to your JRE/JDK lib directory might be the solution - would you like to give it a try?

Also, there might be a way with using OpenJDK - take a look at #88

acestu commented 8 years ago

Hi Kamilfb, TLaren

You might find this page interesting, it has a version of java with FX for raspberry pi, you might have more luck with it:

http://chriswhocodes.com/

Thanks Stuart

TLaren commented 8 years ago

Thanks for the support. Just have not had time to try your solutions. Tomorrow I will let you know how it worked.

Thanks again,

Tim

From: acestu [mailto:notifications@github.com] Sent: Saturday, October 15, 2016 2:50 PM To: kamilfb/mqtt-spy mqtt-spy@noreply.github.com Cc: TLaren timl@instanet.com; Mention mention@noreply.github.com Subject: Re: [kamilfb/mqtt-spy] Error: Could not find or load main class pl.baczkowicz.mqttspy.Main (#103)

Hi Kamilfb, TLaren

You might find this page interesting, it has a version of java with FX for raspberry pi, you might have more luck with it:

http://chriswhocodes.com/

Thanks Stuart

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kamilfb/mqtt-spy/issues/103#issuecomment-254013239 , or mute the thread https://github.com/notifications/unsubscribe-auth/AGPKnNFnNisVqTZGbpzY0zpdkHmQd373ks5q0UqGgaJpZM4KPlOV . https://github.com/notifications/beacon/AGPKnDu1_6zfV2r0BIVFHelvHf_nA9iEks5q0UqGgaJpZM4KPlOV.gif

kamilfb commented 8 years ago

@TLaren any more luck with that? For future questions or comments, could you use https://github.com/eclipse/paho.mqtt-spy/issues/5 instead so that we have only one issue open for this?

sova32 commented 1 year ago

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