Lesson 3.1: Set up Eclipse to run the client and build the samples

Complete this lesson to import the Eclipse project that you will use to run the client and build the sample plug-ins.

About this task

The sample includes a Java™ SE client program that connects to the grid and inserts and retrieves data from it. It also includes projects that you can use to build and redeploy the OSGi bundles.

The provided project has been tested with Eclipse 3.x and later, and requires only the standard Java development project perspective. Complete the following steps to set up of your WebSphere® eXtreme Scale development environment.

Procedure

  1. Open Eclipse to a new or existing workspace.
  2. From the File menu, select Import.
  3. Expand the General folder. Select Existing Projects into Workspace, and click Next.
  4. In the Select root directory field, type or browse to the wxs_sample_osgi_root directory. Click Finish.
    Several new projects are displayed in your workspace. Build errors will be fixed by defining two user libraries. Complete the next steps to define the user libraries.
  5. From the Window menu, select Preferences.
  6. Expand the Java > Build Path branch, and select User Libraries.
  7. Define the eXtreme Scale user library.
    1. Click New.
    2. Type eXtremeScale in the User Library Name field, and click OK.
    3. Select the new user library, and click Add JARs.
      1. Browse and select the objectgrid.jar file from the wxs_install_root/lib directory. Click OK.
      2. To include API documentation for the ObjectGrid APIs, select the API documentation location for the objectgrid.jar file that you added in the previous step. Click Edit.
      3. In the location path box for the API documentation, select the Javadoc.zip file that is included in the following directory: wxs_install_root/docs/javadoc.zip.
  8. Define the Google Protocol Buffers user library.
    1. Click New.
    2. Type com.google.protobuf in the User Library Name field, and click OK.
    3. Select the new user library, and click Add JARs.
      1. Browse and select the com.google.protobuf_2.4.0.a.jar file from the wxs_sample_osgi_root/lib directory. Click OK.

Results

Lesson checkpoint

In this lesson, you imported the sample Eclipse project and defined the user libraries that fixed any build errors.