Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » MQTT + Eclipse Paho + Java 8 + compiler with line command(building eclipse paho mqtt android client and raspberry pi)
MQTT + Eclipse Paho + Java 8 + compiler with line command [message #1415951] Thu, 04 September 2014 03:02 Go to next message
neuber sousa is currently offline neuber sousaFriend
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

Re: MQTT + Eclipse Paho + Java 8 + compiler with line command [message #1421274 is a reply to message #1415951] Thu, 11 September 2014 06:34 Go to previous message
shankha banerjee is currently offline shankha banerjeeFriend
Messages: 40
Registered: February 2013
Member
Looks like a issue with oracle compiler.

>javac -cp mqtt-client-0.4.0.jar MQTTBaseClass.java

Have you tried ecj (command line version of the Eclipse Compiler).

http://download.eclipse.org/eclipse/downloads/drops4/S-4.5M1-201408062000/
Previous Topic:From CompletionContext.getExpectedTypes* to type names (with type parameters expanded)
Next Topic:Inserting block for nested if-else
Goto Forum:
  


Current Time: Wed Dec 02 13:28:00 GMT 2020

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

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

Back to the top