Skip to main content



      Home
Home » Eclipse Projects » Paho » The type org.eclipse.paho.client.mqttv3.MqttClient is not accessible(Use in Eclipse IDE issue)
The type org.eclipse.paho.client.mqttv3.MqttClient is not accessible [message #1869396] Thu, 15 August 2024 14:06
Eclipse UserFriend
What am I doing wrong?
I managed to get Paho to compile using Mavin and Java 8, which I had to down grade because it doesn't know what to do with Java 22.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Eclipse Paho 1.2.6:
[INFO]
[INFO] Eclipse Paho ....................................... SUCCESS [  0.686 s]
[INFO] org.eclipse.paho.client.mqttv3 ..................... SUCCESS [  8.860 s]
[INFO] Paho P2 Repository for mqttv3 client ............... SUCCESS [  1.412 s]
[INFO] org.eclipse.paho.client.mqttv3.test ................ SUCCESS [  2.534 s]
[INFO] org.eclipse.paho.mqttv5.client ..................... SUCCESS [  3.062 s]
[INFO] Paho P2 Repository ................................. SUCCESS [  0.684 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------


I then loaded the publish example into Eclipse IDE.
Immediately it told me that "org" was not found.
That is correct, the JAR file was not in the class path.
So I added the JAR to the class path, expecting that it would be able to find org.eclipse.paho.client.mqttv3.MqttClient, but...
Instead I get an error that org.eclipse.paho.client.mqttv3.MqttClient "is not accessible", which implies that it found the class, but can't use it. Why?

I am able to compile at the command line, but then when I try to run, I get an error that it "Could not find or load main class MqttPublishSample"

So what am I doing wrong?
Previous Topic:Support for HTTP proxy with SSL decryption
Next Topic:MQTT v5 for Android
Goto Forum:
  


Current Time: Mon Jun 23 19:02:44 EDT 2025

Powered by FUDForum. Page generated in 0.03800 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top