Create a new Java project

First, we will create a new Java project, and include the ActiveSpaces® Transactions Java SDK as a support library.

Start Eclipse and create a new Java project:

  1. In the File menu, select New ->Java Project.

  2. In the New Java Project dialog that pops up, set the Project name to "ActiveSpaces® Transactions Quick Start"

    Creating the ActiveSpaces® Transactions Quick Start project

    Figure 2.1. Creating the ActiveSpaces® Transactions Quick Start project


  3. Click "Next" to move to the Java Settings page.

  4. Select the Libraries tab, and click on "Add External JARs..."

  5. Browse to the folder where you installed the ActiveSpaces® Transactions Java SDK, and find the file deploy.jar. Select it and click "OK".

    Adding deploy.jar to the project libraries

    Figure 2.2. Adding deploy.jar to the project libraries


  6. Select "Finish" to close the New Java Project window; Eclipse will generate the project structures in your default workspace.