Configure the project
To build the project you have just created, you must add the needed JAR files to the classpath, and tell Java where to find the required native libraries when launching the application.
The XBJL-X.Y.Z you downloaded and unzipped (see XBee Java Library software) contains the library JAR file, xbee-java-library-X.Y.Z.jar, and other needed resources in the directory called extra-libs. The XBee Java Library depends on the following JAR files and native libraries:
- rxtx-2.2.jar: RXTX library that provides serial communication in Java.
- slf4j-api-1.7.12.jar: Simple Logging Facade for Java (SLF4J) for logging.
- slf4j-nop-1.7.12.jar: SLF4J binding for NOP, silently discarding all logging.
- RXTX native library that depends on your PC operating system and the installed Java Virtual Machine (as an example we are going to use 32-bit Windows).
- android-sdk-5.1.1.jar: Library that provides all the necessary classes to create content for Android.
-
android-sdk-addon-3.jar: Digi SDK Add-on for Android, which allows you to create apps for Digi Embedded devices.