Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » MQTT jmeclient not compiling
MQTT jmeclient not compiling [message #1715983] Mon, 30 November 2015 06:54
Ashok Athukuri is currently offline Ashok AthukuriFriend
Messages: 14
Registered: November 2015
Junior Member
Hello All,

I am a beginner in MQTT and I want to compile MQTT client for Java ME.
I found paho jmeclinet at https://github.com/eclipse/paho.mqtt.java/tree/master/org.eclipse.paho.jmeclient

I have imported this project in eclipse as Java ME project, I have also changed build.xml with <fileset dir="C:\Java_ME_platform_SDK_3.4/lib">

But I see below errors, did I missed something here !? I have attached project view in Eclipse IDE.


Buildfile: D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\build.xml
[taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.
clean:
[echo] Cleaning project...
[delete] Deleting directory D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work
init:
[mkdir] Created dir: D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src
[mkdir] Created dir: D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\bin
compile:
[echo] Compiling client library...
[copy] Copying 93 files to D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src
[copy] Copied 38 empty directories to 2 empty directories under D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src
[javac] Compiling 71 source files to D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\bin
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.3
[javac] warning: [options] source value 1.3 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.3 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:28: error: cannot find symbol
[javac] import org.eclipse.paho.client.mqttv3.internal.LocalNetworkModule;
[javac] ^
[javac] symbol: class LocalNetworkModule
[javac] location: package org.eclipse.paho.client.mqttv3.internal
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:30: error: cannot find symbol
[javac] import org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule;
[javac] ^
[javac] symbol: class SSLNetworkModule
[javac] location: package org.eclipse.paho.client.mqttv3.internal
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:32: error: package org.eclipse.paho.client.mqttv3.internal.security does not exist
[javac] import org.eclipse.paho.client.mqttv3.internal.security.SSLSocketFactoryFactory;
[javac] ^
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:40: error: cannot find symbol
[javac] import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence;
[javac] ^
[javac] symbol: class MqttDefaultFilePersistence
[javac] location: package org.eclipse.paho.client.mqttv3.persist
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttClient.java:23: error: cannot find symbol
[javac] import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence;
[javac] ^
[javac] symbol: class MqttDefaultFilePersistence
[javac] location: package org.eclipse.paho.client.mqttv3.persist
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\org\eclipse\paho\client\mqttv3\internal\MqttMicroNetworkFactory.java:26: error: cannot find symbol
[javac] public class MqttMicroNetworkFactory implements IMqttNetworkFactory {
[javac] ^
[javac] symbol: class IMqttNetworkFactory
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java-templates\org\eclipse\paho\client\mqttv3\internal\ClientComms.java:207: error: cannot find symbol
[javac] options.getMqttVersion(),
[javac] ^
[javac] symbol: method getMqttVersion()
[javac] location: variable options of type MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\org\eclipse\paho\client\mqttv3\MqttConnectOptions.java:148: error: cannot find symbol
[javac] MqttAsyncClient.validateTopic(dest);
[javac] ^
[javac] symbol: method validateTopic(String)
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\org\eclipse\paho\client\mqttv3\MqttConnectOptions.java:413: error: incompatible types: Hashtable cannot be converted to Properties
[javac] return Debug.dumpProperties(getDebug(), "Connection options");
[javac] ^
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\org\eclipse\paho\client\mqttv3\util\PropertyResourceBundle.java:113: error: cannot find symbol
[javac] throw new MqttException(MqttException.REASON_CODE_CATALOG_NOT_FOUND);
[javac] ^
[javac] symbol: variable REASON_CODE_CATALOG_NOT_FOUND
[javac] location: class MqttException
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:163: error: cannot find symbol
[javac] this(serverURI,clientId, new MqttDefaultFilePersistence());
[javac] ^
[javac] symbol: class MqttDefaultFilePersistence
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:355: error: cannot find symbol
[javac] SocketFactory factory = options.getSocketFactory();
[javac] ^
[javac] symbol: method getSocketFactory()
[javac] location: variable options of type MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:377: error: cannot find symbol
[javac] SSLSocketFactoryFactory factoryFactory = null;
[javac] ^
[javac] symbol: class SSLSocketFactoryFactory
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:380: error: cannot find symbol
[javac] factoryFactory = new SSLSocketFactoryFactory();
[javac] ^
[javac] symbol: class SSLSocketFactoryFactory
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:381: error: incompatible types: Hashtable cannot be converted to Properties
[javac] Properties sslClientProps = options.getSSLProperties();
[javac] ^
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:395: error: cannot find symbol
[javac] netModule = new SSLNetworkModule((SSLSocketFactory) factory, host, port, clientId);
[javac] ^
[javac] symbol: class SSLNetworkModule
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:396: error: cannot find symbol
[javac] ((SSLNetworkModule)netModule).setSSLhandshakeTimeout(options.getConnectionTimeout());
[javac] ^
[javac] symbol: class SSLNetworkModule
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:401: error: cannot find symbol
[javac] ((SSLNetworkModule) netModule).setEnabledCiphers(enabledCiphers);
[javac] ^
[javac] symbol: class SSLNetworkModule
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttAsyncClient.java:406: error: cannot find symbol
[javac] netModule = new LocalNetworkModule(address.substring(Cool);
[javac] ^
[javac] symbol: class LocalNetworkModule
[javac] location: class MqttAsyncClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\util\Debug.java:136: error: incompatible types: Hashtable cannot be converted to Properties
[javac] props = comms.getConOptions().getDebug();
[javac] ^
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\MqttClient.java:136: error: cannot find symbol
[javac] this(serverURI,clientId, new MqttDefaultFilePersistence());
[javac] ^
[javac] symbol: class MqttDefaultFilePersistence
[javac] location: class MqttClient
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:71: error: cannot find symbol
[javac] this.originalMqttVersion = options.getMqttVersion();
[javac] ^
[javac] symbol: method getMqttVersion()
[javac] location: variable options of type MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:80: error: cannot find symbol
[javac] if (originalMqttVersion == MqttConnectOptions.MQTT_VERSION_DEFAULT) {
[javac] ^
[javac] symbol: variable MQTT_VERSION_DEFAULT
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:81: error: cannot find symbol
[javac] options.setMqttVersion(MqttConnectOptions.MQTT_VERSION_DEFAULT);
[javac] ^
[javac] symbol: variable MQTT_VERSION_DEFAULT
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:104: error: cannot find symbol
[javac] if ((index + 1) < numberOfURIs || (originalMqttVersion == MqttConnectOptions.MQTT_VERSION_DEFAULT && options.getMqttVersion() == MqttConnectOptions.MQTT_VERSION_3_1_1)) {
[javac] ^
[javac] symbol: variable MQTT_VERSION_DEFAULT
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:104: error: cannot find symbol
[javac] if ((index + 1) < numberOfURIs || (originalMqttVersion == MqttConnectOptions.MQTT_VERSION_DEFAULT && options.getMqttVersion() == MqttConnectOptions.MQTT_VERSION_3_1_1)) {
[javac] ^
[javac] symbol: method getMqttVersion()
[javac] location: variable options of type MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:104: error: cannot find symbol
[javac] if ((index + 1) < numberOfURIs || (originalMqttVersion == MqttConnectOptions.MQTT_VERSION_DEFAULT && options.getMqttVersion() == MqttConnectOptions.MQTT_VERSION_3_1_1)) {
[javac] ^
[javac] symbol: variable MQTT_VERSION_3_1_1
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:106: error: cannot find symbol
[javac] if (originalMqttVersion == MqttConnectOptions.MQTT_VERSION_DEFAULT) {
[javac] ^
[javac] symbol: variable MQTT_VERSION_DEFAULT
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:107: error: cannot find symbol
[javac] if (options.getMqttVersion() == MqttConnectOptions.MQTT_VERSION_3_1_1) {
[javac] ^
[javac] symbol: method getMqttVersion()
[javac] location: variable options of type MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:107: error: cannot find symbol
[javac] if (options.getMqttVersion() == MqttConnectOptions.MQTT_VERSION_3_1_1) {
[javac] ^
[javac] symbol: variable MQTT_VERSION_3_1_1
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:108: error: cannot find symbol
[javac] options.setMqttVersion(MqttConnectOptions.MQTT_VERSION_3_1);
[javac] ^
[javac] symbol: variable MQTT_VERSION_3_1
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:111: error: cannot find symbol
[javac] options.setMqttVersion(MqttConnectOptions.MQTT_VERSION_3_1_1);
[javac] ^
[javac] symbol: variable MQTT_VERSION_3_1_1
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:126: error: cannot find symbol
[javac] if (originalMqttVersion == MqttConnectOptions.MQTT_VERSION_DEFAULT) {
[javac] ^
[javac] symbol: variable MQTT_VERSION_DEFAULT
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:127: error: cannot find symbol
[javac] options.setMqttVersion(MqttConnectOptions.MQTT_VERSION_DEFAULT);
[javac] ^
[javac] symbol: variable MQTT_VERSION_DEFAULT
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:161: error: cannot find symbol
[javac] if (options.getMqttVersion() == MqttConnectOptions.MQTT_VERSION_DEFAULT) {
[javac] ^
[javac] symbol: method getMqttVersion()
[javac] location: variable options of type MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:161: error: cannot find symbol
[javac] if (options.getMqttVersion() == MqttConnectOptions.MQTT_VERSION_DEFAULT) {
[javac] ^
[javac] symbol: variable MQTT_VERSION_DEFAULT
[javac] location: class MqttConnectOptions
[javac] D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src\java\org\eclipse\paho\client\mqttv3\internal\ConnectActionListener.java:162: error: cannot find symbol
[javac] options.setMqttVersion(MqttConnectOptions.MQTT_VERSION_3_1_1);
[javac] ^
[javac] symbol: variable MQTT_VERSION_3_1_1
[javac] location: class MqttConnectOptions
[javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[javac] 37 errors
[javac] 4 warnings

BUILD FAILED
D:\MQTT\testMEProj\org.eclipse.paho.mqtt.java-1.0.2\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\build.xml:88: Compile failed; see the compiler error output for details.

Total time: 5 seconds
Previous Topic:MQTT JS adding proxy settings
Next Topic:Eclipse Paho MQTT Java ME 8 Client
Goto Forum:
  


Current Time: Fri Sep 21 16:34:10 GMT 2018

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

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

Back to the top