Programming

This guide will walk you though getting an Eclipse project setup with the Neuron Robotics Java SDK. After completing the process, you'll have setup a project ready and done some programming with the DyIO.

Step 0: Setup NRDK

If you have not already setup the Neuron Robotics Development Kit on your system, follow the Quick-start for your system.

Step 1: Get and Install Eclipse

Windows and OS X Download Eclipse IDE for Java Developers for your system. If you already have Eclipse, make sure that you have theJava Developer Tools. Install Eclipse by unpacking it to a known location (i.e. C:/Program Files or /Applications).

Linux / Unix

Follow the standard system procedure for installing Eclipse. NixCraft has a good tutorial for Ubuntu / Debian systems.

Step 2: Start a new Java project

  1. Open Eclipse and start a new Java project (File > New > Java Project).
  2. Give the project whatever name you'd like (i.e. Demo Project) and click "Next".
  3. On the next screen (Java Settings) click the "Libraries" tab and then click the "Add External Library" button.
  4. Locate the Java directory under the NRDK home directory (i.e. C:/Program Files/Neuron Robotics Development Kit/) and select the Neuron Robotics Java SDK jar.
  5. Click Finish on the new project wizard.

Step 3: Start writing code

You should now see your project under the package explorer in Eclipse. Expand the project by clicking the triangle on the left of the project's name. Right-click on the "src" folder and add a new class. Give it whatever name you'd like (i.e. DemoClass). You're now able to start writing code. Follow the programming demos to explore the different options available.

Additional Programming Resources

© 2010 Copyright Neuron Robotics, LLC. All Rights Reserved.