I'm trying to run this project
I have this error: http://pic.twitter.com/rTjrPKK6hm -and- this error: http://pic.twitter.com/lqcx0Urdjc
Thsi is my paste of the raspberry pi:
root@raspberrypi:/opt# ls
jdk1.8.0_06 MQTTBaseClass.java pi4j vc
jdk8 mqtt-client-0.4.0.jar sonic-pi Wolfram
When I tried this command:
javac -cp mqtt-client-0.4.0.jar MQTTBaseClass.java
I have this errors:
root@raspberrypi:/opt# javac -cp mqtt-client-0.4.0.jar MQTTBaseClass.java
MQTTBaseClass.java:11: error: cannot find symbol
import org.eclipse.paho.client.mqttv3.internal.MemoryPersistence;
^
symbol: class MemoryPersistence
location: package org.eclipse.paho.client.mqttv3.internal
MQTTBaseClass.java:13: error: package com.pi4j.io.gpio does not exist
import com.pi4j.io.gpio.GpioController;
^
MQTTBaseClass.java:14: error: package com.pi4j.io.gpio does not exist
import com.pi4j.io.gpio.GpioFactory;
^
MQTTBaseClass.java:15: error: package com.pi4j.io.gpio does not exist
import com.pi4j.io.gpio.GpioPinDigitalOutput;
^
MQTTBaseClass.java:16: error: package com.pi4j.io.gpio does not exist
import com.pi4j.io.gpio.RaspiPin;
^
MQTTBaseClass.java:25: error: cannot find symbol
private static GpioPinDigitalOutput pin;
^
symbol: class GpioPinDigitalOutput
location: class MQTTBaseClass
MQTTBaseClass.java:26: error: cannot find symbol
private static GpioController gpio;
^
symbol: class GpioController
location: class MQTTBaseClass
MQTTBaseClass.java:34: error: cannot find symbol
gpio = GpioFactory.getInstance();
^
symbol: variable GpioFactory
location: class MQTTBaseClass
MQTTBaseClass.java:36: error: cannot find symbol
"eorasppi", new MemoryPersistence());
symbol: class MemoryPersistence
location: class MQTTBaseClass
MQTTBaseClass.java:41: error: <anonymous MQTTBaseClass$1> is not abstract and does not override abstract method deliveryComplete(IMqttDeliveryToken) in MqttCallback
client.setCallback(new MqttCallback() {
^
MQTTBaseClass.java:43: error: method does not override or implement a method from a supertype
@Override
^
MQTTBaseClass.java:78: error: method does not override or implement a method from a supertype
@Override
^
MQTTBaseClass.java:95: error: cannot find symbol
RaspiPin.GPIO_01, "MyLED");
^
symbol: variable RaspiPin
location: class MQTTBaseClass
13 errors
root@neuber-HP-EliteBook-8460p:/opt# ls
eclipse google jdk MQTTBaseClass.java mqtt-client-0.4.0.jar org.eclipse.paho.client.mqttv3-1.0.0.jar pi4j
and, this is errors:
root@neuber-HP-EliteBook-8460p:/opt# javac -cp mqtt-client-0.4.0.jar:/opt/pi4j/lib/'*' MQTTBaseClass.java
MQTTBaseClass.java:11: error: cannot find symbol
import org.eclipse.paho.client.mqttv3.internal.MemoryPersistence;
^
symbol: class MemoryPersistence
location: package org.eclipse.paho.client.mqttv3.internal
MQTTBaseClass.java:36: error: cannot find symbol
"eorasppi", new MemoryPersistence());
^
symbol: class MemoryPersistence
location: class MQTTBaseClass
MQTTBaseClass.java:41: error: <anonymous MQTTBaseClass$1> is not abstract and does not override abstract method deliveryComplete(IMqttDeliveryToken) in MqttCallback
client.setCallback(new MqttCallback() {
^
MQTTBaseClass.java:43: error: method does not override or implement a method from a supertype
@Override
^
MQTTBaseClass.java:78: error: method does not override or implement a method from a supertype
@Override
^
5 errors
root@neuber-HP-EliteBook-8460p:/opt# ls
eclipse google jdk MQTTBaseClass.java mqtt-client-0.4.0.jar org.eclipse.paho.client.mqttv3-1.0.0.jar pi4j
and, this is errors:
root@neuber-HP-EliteBook-8460p:/opt# javac -cp mqtt-client-0.4.0.jar:/opt/pi4j/lib/'*' MQTTBaseClass.java
MQTTBaseClass.java:11: error: cannot find symbol
import org.eclipse.paho.client.mqttv3.internal.MemoryPersistence;
^
symbol: class MemoryPersistence
location: package org.eclipse.paho.client.mqttv3.internal
MQTTBaseClass.java:36: error: cannot find symbol
"eorasppi", new MemoryPersistence());
^
symbol: class MemoryPersistence
location: class MQTTBaseClass
MQTTBaseClass.java:41: error: <anonymous MQTTBaseClass$1> is not abstract and does not override abstract method deliveryComplete(IMqttDeliveryToken) in MqttCallback
client.setCallback(new MqttCallback() {
^
MQTTBaseClass.java:43: error: method does not override or implement a method from a supertype
@Override
^
MQTTBaseClass.java:78: error: method does not override or implement a method from a supertype
@Override
^
5 errors
5 errors
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at http://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
--
--
Totally agree with Nick. Go back to basics.
I actually have told you how to fix this specific problem (use latest jar for 1.0 + and and then modify messageArrived to match the method signature) but you're showing no signs of understanding what several of us have told you.
I've now not only muted you on Twitter, I've blocked you as I don't need the constant demands for attention and support and I am not your personal one man support agent - nor are any of the open source contributors who have tried to help you.a Any tweets you direct at me will be ignored.
Ask in the right places, be prepared to do some work yourself, and listen to what you've been advised. Like I said before, then share what you learned with the rest of the community.