How to import in Eclipse com.microsoft.azure.sdk.iot.device jar [message #1793451] |
Wed, 08 August 2018 11:02  |
Eclipse User |
|
|
|
Hi all,
i wasn't able to build deployment package of my eclipse kura bundle, because of this follwing error:
# 8/8/18 4:38:14 PM CEST
# Eclipse Compiler for Java(TM) v20180330-0919, 3.13.102, Copyright IBM Corp 2000, 2015. All rights reserved.
ERROR in C:\Users\...\..\..\..\...\example.java
import com.microsoft.azure.sdk.iot.device.DeviceClient;
^^^^^^^^^^^^^
The import com.microsoft cannot be resolved
I have imported and added in the build path all necessary jar libs for use
DeviceClient;IotHubClientProtocol;IotHubEventCallback;IotHubStatusCode; classes.
import com.microsoft.azure.sdk.iot.device.DeviceClient;
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
import com.microsoft.azure.sdk.iot.device.IotHubEventCallback;
import com.microsoft.azure.sdk.iot.device.IotHubStatusCode;
I have no error in example.java compilation but i cant't build and generate the example.dp from example.dpp.
Thanks in advance
Giuseppe
|
|
|
|
|
|
Re: How to import in Eclipse com.microsoft.azure.sdk.iot.device jar [message #1793907 is a reply to message #1793638] |
Mon, 20 August 2018 04:56   |
Eclipse User |
|
|
|
Hello,
this is my MANIFEST build.properties:
output.. = target/classes/
bin.includes = META-INF/,\
OSGI-INF/,\
about.html,\
about_files/,\
lib_new/azure-storage-2.2.0.jar,\
lib_new/bcmail-jdk15on-1.53.jar,\
lib_new/bcpkix-jdk15on-1.53.jar,\
lib_new/bcprov-jdk15on-1.53.jar,\
lib_new/iot-deps-0.6.1.jar,\
lib_new/iot-device-client-1.13.1.jar,\
lib_new/security-provider-1.1.0.jar
additional.bundles = org.eclipse.osgi,\
org.eclipse.osgi.services,\
org.eclipse.osgi.util,\
org.eclipse.kura.api,\
slf4j.api
src.includes = about.html,\
about_files/
jre.compilation.profile = JavaSE-1.8
I was able to build the dp file in eclipse but when I deploy the dp file, i have always the java.lang.ClassNotFoundException
I have tried with and without modify config.ini
Thanks for help
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05183 seconds