MQTT + Eclipse Paho + Java 8 + compiler with line command [message #1415951] |
Thu, 04 September 2014 03:02 |
neuber sousa Messages: 1 Registered: September 2014 |
Junior Member |
|
|
I'm trying to run this project (voicerecog4pi-master.zip)
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
[Updated on: Thu, 04 September 2014 12:22] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03271 seconds