Setting up a Development Environment

The Goal

Use the Eclipse Integrated Development Environment to create an application for DataTurbine.

What We Need

Setting it up

  1. Install Java JDK
    1. Go to the Oracle website to download the latest Java JDK (note this is different from the Java Runtime Environment (JRE) that most systems have installed
    2. Verify java is installed by opening a terminal and typing
      java -version
    3. If this produces an error you may need to set java to be on your system path
  2. Install Eclipse by going to the Eclipse website and download the Eclipse IDE for java Developers
  3. Download rbnb.jar, you will use this file to both launch DataTurbine and as a library for Eclipse
  4. Configure Eclipse
    1. Open Eclipse and specify your Workspace. A workspace is a directory where Eclipse will store your various projects and associated settings.
    2. Create a new eclipse project
      1. Click on File->New->Java Project to launch the new project wizard
      2. Under Project Name give the project a representative name and click Nexteclipse-new-proj
      3. Click the Libraries tab and on the right hand side click Add External JARs
      4. Select rbnb.jar and click open (note before you do this it may be a good idea to move rbnb.jar into your project directory)
      5. Click on the triangle next to rbnb.jar to show more options
      6. Click finished
    3. You can create class by File->New->Class in the file menu or right clicking on the desired folder in the tree view on the left
  5. Development
    1. When testing your code you may find it helpful to have a local instance of RBNB running.
    2. You may also wish to view the data in a sink like RDV
    3. You can look at the first time users guide to help you run and connect to a server
  6. Programming Advice
    1. You may find the programming guide helpful in getting you started
    2. Remember that whenever you call the rbnb API you need the import declaration at the top of the file
      import com.rbnb*;
    3. No data is sent by sources until you do a flush call
    4. DataTurbine does not let you add datapoints to a channel that are time stamped earlier then the newest point.
    5. RDV may not graph your points until you set the correct granularity in the top menu. Look at the RDV Quick start guide for help with this
Open Source DataTurbine Initiative © 2017 Frontier Theme