Inputs and outputs
d. Click Finish to create the project. The window closes and the project appears in the Projects
view list on the left side of the IDE.
Step 5: Link libraries to the project
This topic describes how to link the XBee Java Library, the RXTX library (including the native one),
and the logger library to the project.
1. Download the
2. Unzip the XBJL_X.Y.Z.zip library.
3. Link the libraries using Eclipse or NetBeans:
Option 1: Eclipse
a. Go to the Libraries tab of the New Java Project window.
b. Click Add External JARs....
c. In the JAR Selection window, search the folder where you unzipped the XBee Java Library and
open the xbee-java-library-X.Y.Z.jar file.
d. Click Add External JARs... again.
e. Go to the extra-libs folder and select the following files:
rxtx-2.2.jar
n
slf4j-api-x.y.z.jar
n
slf4j-nop-x.y.z.jar
n
f. Expand the rxtx-2.2.jar file of the Libraries tab list, select Native library location, and click
Edit....
g. Click External folder... to navigate to the extra-libs\native\Windows\win32 folder of the
directory where you unzipped the XBee Java Library file (XBJL_X.Y.Z.zip).
Replace Windows\win32 with the directory that matches your operating system and
n
the Java Virtual Machine installed (32 or 64 bits). If you don't know which Java Virtual
Machine is installed in your computer, open a terminal or command prompt and
execute:
java -version
h. Click OK to add the path to the native libraries.
i. Click Finish.
or
Option 2: NetBeans
a. From Projects view, right-click your project and go to Properties.
b. In the categories list on the left, go to Libraries and click Add JAR/Folder.
c. In the Add JAR/Folder window, search the folder where you unzipped the XBee Java Library
and open the xbjlib-X.Y.X.jar file.
d. Click Add JAR/Folder again.
XBee® Zigbee® Mesh Kit
XBJL_X.Y.Z.zip library.
Example: send digital actuations
123
Need help?
Do you have a question about the XBee Zigbee Mesh Kit and is the answer not in the manual?