There was a little work done to create an OSGi bundle that bundled the required
libraries into a bundle but that bundle ran into problems when it came to
properly using security. Those issues were never solved and since there was no
indication of strong demand the work has largely been ignored due to limited
developer resources. (see https://jira.iotivity.org/browse/IOT-2406)
You don’t actually need all the contents of the release folder you only need
the .so files used by iotivity.jar. Those libraries are:
(for Linux) oc_logger, octbstack, oc, ocstack-jni
(for Android) connectivity_abstraction, oc_logger, octbstack, oc,
ocprovision, ca-interface, and ocstack-jni
If you are using the services there may be more libraries needed. You can grep
through the Java code for “System.loadLibrary” to find the libraries used by
each service.
George Nash
From: [email protected]
[mailto:[email protected]] On Behalf Of Arthur Barros
Lapprand
Sent: Tuesday, January 16, 2018 6:18 AM
To: iotivity <[email protected]>
Subject: [dev] IoTivity fat jar from scons?
Hi all,
Isn't there a way for scons to generate a jar with all dependencies? The
iotivity.jar needs the env LD_LIBRARY_PATH to work but I don't want to use it
because the release folder has around 800 MB of space while building scons on
java/ (Trying to build a small Docker image). Yes, I need the IoTivity java.
Regards,
A. Lapprand
_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev