Hi,
I’m trying to build
(using ant with the provided build.xml) “out-of-the-box”
org.eclipse.paho.jmeclient.mqttv3 (source); however I get a
lot of errors (see below). Please can someone give me some
hints to build successfully the j2me client? Thanks.
Buildfile:
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work
init:
[mkdir] Created dir:
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src
[mkdir] Created dir:
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\bin
compile:
[echo] Compiling
client library...
[copy] Copying 93
files to
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src
[copy] Copied 38
empty directories to 2 empty directories under
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\org.eclipse.paho.jmeclient\org.eclipse.paho.jmeclient.mqttv3\target\work\src
[javac] Compiling 71
source files to
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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(8));
[javac]
^
[javac] symbol:
class LocalNetworkModule
[javac] location:
class MqttAsyncClient
[javac]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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]
C:\Data\mqtt\org.eclipse.paho.mqtt.java-1.0.0\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