Hi,
I want to use Paho Java client. So, I built the code from the source using
'mvn package -DskipTests'
as outlined in:
https://eclipse.org/paho/clients/java/ and it was successful. However I have the following problem:
I wanted to compile the sample client java code "
MqttClientPaho.java" available in the directory: "
/org.eclipse.paho.mqtt.java/org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/client" using the command "
javac -g MqttClientPaho.java". It gives me a lot of errors. A snapshot of the error is:
MqttClientPaho.java:17: error: cannot find symbol
import org.eclipse.paho.client.mqttv3.MqttClient;
^
symbol: class MqttClient
location: package org.eclipse.paho.client.mqttv3
MqttClientPaho.java:18: error: cannot find symbol
import org.eclipse.paho.client.mqttv3.MqttClientPersistence;
^
symbol: class MqttClientPersistence
location: package org.eclipse.paho.client.mqttv3
MqttClientPaho.java:19: error: cannot find symbol
import org.eclipse.paho.client.mqttv3.MqttException;
^
symbol: class MqttException
location: package org.eclipse.paho.client.mqttv3
MqttClientPaho.java:25: error: cannot find symbol
public class MqttClientPaho extends MqttClient {
^
^
Can you please provide some pointers as to how I can compile java programs stand alone which uses the Eclipse Client Java libraries.