Hi Petre,


After I run these two commands at iotivity root folder, it gives me

Error: Could not find or load main class org.iotivity.base.examples.SimpleClient



I looked into folder /java/iotivity-linux/, there is only /src, don?t have a 
/build folder, so there is no iotivity-linux.jar

I compile with ./auto_build.sh linux_unsecured_with_java

Am I supposed to get the iotivity-linux.jar after running this command?



From: Eftime, Petre P [mailto:[email protected]] 
Sent: Tuesday, May 31, 2016 3:50 PM
To: Gregg Reynolds
Cc: iotivity-dev at lists.iotivity.org; uzchoi at samsung.com; maxi.wu at 
u-media.com.tw
Subject: RE: [dev] Is it possible to port the Java(Android) API to general java 
application?



Hi Gregg,



I found the cause of the issue and updated the change.

This patch fixes the issue: 
https://gerrit.iotivity.org/gerrit/#/c/7895/6..7/build_common/linux/SConscript



--

Petre Eftime



From: Gregg Reynolds [mailto:[email protected]] 
Sent: Monday, May 30, 2016 7:04 PM
To: Eftime, Petre P <petre.p.eftime at intel.com>
Cc: iotivity-dev at lists.iotivity.org; uzchoi at samsung.com; maxi.wu at 
u-media.com.tw
Subject: Re: [dev] Is it possible to port the Java(Android) API to general java 
application?







On Wed, May 4, 2016 at 3:58 AM, Eftime, Petre P <petre.p.eftime at intel.com> 
wrote:

Hi,

My changes already include a working SimpleClient/SimpleServer working with 
Java Bindings, you should be able to compile them by running
./auto_build.sh linux_unsecured_with_java
on the latest patch in the change. To run the simpleclient you will need to run 
these commands in the root iotivity folder, assuming you have not changed the 
output folder:
       export LD_LIBRARY_PATH=$(pwd)/out/linux/x86_64/debug/:$LD_LIBRARY_PATH
java -cp 
java/examples-java/simpleclient/build/libs/simpleclient.jar:java/iotivity-linux/build/libs/iotivity-linux.jar
 org.iotivity.base.examples.SimpleClient
What I could use help with is removing the dependency on Android from the other 
examples in java/examples-java.



Hi Petre,



If you still need help with this I have some time.  The problem is I can't get 
the compile to work (see my other messages).  I started by checking out the 
source from gerrit, then I checked out the generic-java branch, but it does not 
include your changes in https://gerrit.iotivity.org/gerrit/#/c/7895/ .  So I 
poked around and figured out how to get the change from Gerrit.  At least I 
think I did, I ended up with your changes.  But ./auto_build.sh 
linux_unsecured_with_java gives me



AttributeError: 'SConsEnvironment' object has no attribute 'Download':

...

  File "/home/gar/iotivity/iotivity/extlibs/android/gradle/SConscript", line 22:

    gradle_zip = env.Download('gradle2.2.1.zip', 
'https://services.gradle.org/distributions/gradle-2.2.1-all.zip')





If you (or anybody) could offer detailed instructions for building the 
generic-java version (for somebody unfamiliar with gerrit) I can get started on 
examples-java.



Thanks,



Gregg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160616/36a3ed27/attachment.html>

Reply via email to