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
- Open Eclipse to a new or existing workspace.
- From the File menu, select Import.
- Expand the General folder. Select Existing Projects into
Workspace, and click Next.
- 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.
- From the Window menu, select Preferences.
- Expand the branch, and select User Libraries.
- Define the eXtreme Scale user library.
- Click New.
- Type eXtremeScale in the User Library
Name field, and click OK.
- Select the new user library, and click Add JARs.
- Browse and select the objectgrid.jar file from the
wxs_install_root/lib directory. Click
OK.
- 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.
- 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.
- Define the Google Protocol Buffers user library.
- Click New.
- Type com.google.protobuf in the User Library
Name field, and click OK.
- Select the new user library, and click Add JARs.
- Browse and select the com.google.protobuf_2.4.0.a.jar file from the
wxs_sample_osgi_root/lib directory. Click
OK.