After checking out https://wiki.iotivity.org/generic_java_binding let me know if you are still having difficulties.
Enabling the JAVA build to work in windows was only introduced by me 3 weeks ago so there has not been a lot of people using the code. Same as Mushfiqul I am using Windows 7. Please let me know if you run into any issues. George From: [email protected] [mailto:[email protected]] On Behalf Of Muhammad Mushfiqul Islam Sent: Monday, July 24, 2017 6:04 AM To: Maria Koutli <[email protected]> Cc: [email protected] Subject: Re: [dev] How to build native libraries for Iotivity in order to load them in Java Hello Maria, Have you tried to set java library path as mentioned in the below wiki page? https://wiki.iotivity.org/generic_java_binding I have not got the chance to build and run java samples on Windows 10, but it is working fine for me in Win7 & Ubuntu. - Thanks & Regards, Mushfiqul Islam Antu --------- Original Message --------- Sender : Maria Koutli <[email protected]> Date : 2017-07-23 19:42 (GMT+6) Title : [dev] How to build native libraries for Iotivity in order to load them in Java Hello, I'm trying to run Iotivity Simple Clent in Java. I have cloned Iotivity project https://github.com/iotivity/iotivity and I have created an eclipse project that includes all the required Iotivity Java classes plus the classes for the SimpleClient from java-examples folder. When I try to run SimpleClient.java I get Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocstack-jni in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at org.iotivity.base.OcPlatform.<clinit>(OcPlatform.java:39) at org.iotivity.base.examples.SimpleClient.startSimpleClient(SimpleClient.java:75) at org.iotivity.base.examples.SimpleClient.main(SimpleClient.java:524) I have installed SCONs and Gradle but I don't know how to proceed in order to build and create the "ocstack-jni" or any other library that is required to be loaded. My operating system is Windows 10. Are there any instructions on how to create the required native libraries in order to load them in the Java classes? Thank you. _______________________________________________ iotivity-dev mailing list [email protected] https://lists.iotivity.org/mailman/listinfo/iotivity-dev [cid:[email protected]] [Image removed by sender.]
_______________________________________________ iotivity-dev mailing list [email protected] https://lists.iotivity.org/mailman/listinfo/iotivity-dev
