Hi Gregg,

That doesn't seem to be a JNI error, but a classpath error. To include the JNI 
layer you'll just have to set the LD_LIBRARY_PATH and the corresponding 
libraries should be loaded automatically.
After build is done you should have a set of jar files and a set of .so files. 
The jar files are found in the java folder, and the .so files will be found in 
the output folder.

These are the commands I use on Linux, from the main IoTivity folder, but it 
should be similar for Darwin, with some path modications:

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

Reply via email to