Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMQTT + Eclipse Paho + Java 8 + compiler with line command
https://www.eclipse.org/forums/index.php/mv/msg/805848/1415951/#msg_1415951
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
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
]]>neuber sousa2014-09-04T03:02:53-00:00Re: MQTT + Eclipse Paho + Java 8 + compiler with line command
https://www.eclipse.org/forums/index.php/mv/msg/805848/1421274/#msg_1421274
>javac -cp mqtt-client-0.4.0.jar MQTTBaseClass.java
Have you tried ecj (command line version of the Eclipse Compiler).