Edit on GitHub

Library Setup

Java MacOSX

Compiler and Builder


Required Packages

OR


Java Native Access (JNA)

Function Reference

Building and Running the Sample Code

The Dynamixel SDK example code for Java uses the library files(.dylib for Mac) built in C language.

Each released Dynamixel SDK have latest library files in [DynamixelSDK folder]/c/build/mac/libdxl_mac_c.dylib which should be built by its own source code.

2.1 Make Java Project

2.2 Import function reference

(for x86 platform, select [DynamixelSDK folder]/java/dynamixel_functions_java/mac)

2.3 Import DynamixelSDK library

2.4 Import JNA

3. Run example

[Terminal] $ sudo chmod a+rw /dev/tty.usbserial-xxxx