Running The Tutorial Example

To run the tutorial example, please do the following in Eclipse:

  1. Select package “com.tensegrity.firststeps.hellonode” or “com.tensegrity.firststeps.swt.hellonode” with the left mouse button.

  2. Select the menu “Run”.

  3. Select the child menu “run as”.

  4. Select “Java Application

  5. The main method from the HelloNode.java compiled class will be executed.

  6. Close the Java Application window when you have finished viewing the tutorial example.

Note

When running the SWT-based example described above, you will most likely encounter an error of this type: java.lang.UnsatisfiedLinkError: no swt-win32-3062 in java.library.path. In order to successfully run the exampe, file swt-win32-3062.dll (which can be found beside SWT3_0.jar under lib/swt) must be located on your classpath. An easy way to achieve this is by doing the following:

  1. Select the menu “Run”.

  2. Select “Run ...”.

  3. Ensure that the correct example is selected on the list on the left of the dialog.

  4. Select the “Arguments” tab.

  5. Enter the following on the “VW Arguments:” text area: “-Djava.library.path=XXX\workspace\Tensegrity_Graph_First_Steps\lib\swt” where “XXX” is the path to your eclipse installation folder.

  6. Press “Run”.

  7. Close the Java Application window when you have finished viewing the tutorial example.

Figure 3.1. Screenshot HelloNode

Screenshot HelloNode