On Fri, Jun 17, 2016 at 2:16 AM, maxi wu <maxi.wu at u-media.com.tw> wrote:
> Petre,
>
>
>
> I have successfully build simpleclient.jar. Then I try to run it.
>
> 1. Setup library path with command #1
> export LD_LIBRARY_PATH=$(pwd)/out/linux/x86_64/debug/:$LD_LIBRARY_PATH
> echo $LD_LIBRARAY_PATH shows /home/me/iotivity/out/linux/x86_64/debug
> folder path, I suppose it is correct
>
> 2. Run java -cp
> java/examples-java/simpleclient/build/libs/simpleclient.jar:java/iotivity-linux/build/libs/iotivity-linux.jar
> org.iotivity.base.examples.SimpleClient
>
>
>
This works on darwin:
#! /bin/sh
set -x
IOTIVITY_JAR=./java/iotivity-darwin/build/libs/iotivity-darwin.jar
java -cp
./java/examples-java/simpleclient/build/libs/simpleclient.jar:${IOTIVITY_JAR}
\
-Djava.library.path=$(pwd)/out/darwin/x86_64/release/ \
org.iotivity.base.examples.SimpleClient
Check whether you built debug or release, and adjust path accordingly.
-G
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160617/d4c44979/attachment.html>