STK Java API - Configuring Eclipse Projects

The following instructions explain how to configure an Eclipse Integrated Development Environment (IDE) project to use the STK Java API provided with the STK /STK Engine install.

Topics

Get/Install Eclipse

  1. Download the latest Eclipse IDE for Java Developers from http://www.eclipse.org.
  2. Extract the Eclipse IDE to your preferred install location.
  3. Start up the Eclipse IDE.
  4. When asked to select a Workspace, select your favorite filesystem development location.
  5. Click the OK button.

Create a new Eclipse Java Application project

  1. From the File menu, select New, then Java Project.
  2. Type any name you like for your Java project.
  3. Click the Finish button.
  4. Close the Eclipse Welcome tab screen if it is displayed.

Configure an Eclipse project to use the STK Java API

  1. Right-click on the project in the Eclipse Package Explorer and select Properties from the context menu.
  2. In the project properties window tree, choose Java Build Path.
  3. Right-click on the project and choose Properties.
  4. In the Properties dialog box, click on the Java Build Path tree item.
  5. On the right hand side of the Properties dialog box, select the Libraries tab.
  6. Left-click the Add External JARs... button.
  7. In the dialog, browse to your <STK_INSTALL_DIR>/bin.
  8. Select the jar file you want to add to the project and click the OK button.
  9. Note: It is recommended that you add all of the jar files to the project when developing. Before deploying you can remove any unused jar files from your application.

  10. Follow the steps provided in Configure the use of Javadoc library documentation.

STK Engine for UNIX 11.2