- Device Connectivity Guide for Oracle Fusion Cloud IoT Intelligent Applications
- Develop Device Software Using the Client Software Libraries
- Use the Java SE Client Software Libraries
- Build the Java SE Client Software Libraries
Build the Java SE Client Software Libraries
Build the client software libraries from the downloaded source files to customize the functionality of the libraries and change the size of the library JAR files.
- Download and install Gradle. Versions 2.2.1 to 2.13 are supported.
- Download and unzip
iotcs-csl-javase-src-<VERSION>.zip
. - Open a command prompt and use the
cd
command to browse toiotcs/csl/javase
. - If your computer is on a Virtual Private Network, or behind a firewall:
- Open the
gradle.properties
file, located in the Gradle user home directory and add these lines:systemProp.http.proxyHost=<your_proxy_server.com> systemProp.http.proxyPort=<your_proxy_port> systemProp.https.proxyHost=<your_proxy_server.com> systemProp.https.proxyPort=<your_proxy_port>
The default value for the Gradle user home directory isUSER_HOME/.gradle
. To use a different directory, set theGRADLE_USER_HOME
environment variable. - Save your changes and close the
gradle.properties
file.
- Open the
- Run one of these commands to build the Client Software Libraries and documentation:
Command Description gradle
Builds the device-library.jar
andenterprise-library.jar
library files and places them in thebuild/libs
folder.gradle deviceClientJar
Compiles the code specific to a device client and creates build/libs/device-library.jar
gradle enterpriseClientJar
Compiles the code specific to an enterprise client and creates build/libs/enterprise-library.jar
gradle —PWITH_VIRTUALIZATION=false
Compiles the code specific to a device client without virtualization support. This reduces the size of the device-library.jar
gradle -PWITH_ENUMERATION=false
Compiles the code specific to an enterprise client without resource and message enumeration support. This reduces the size of the enterprise-library.jar
file.gradle doc
Generates the javadoc files and places them in the build/docs
folder.