Use Eclipse-based integrated development environment to
build and run a Java™ SE application
with the stand-alone version of WebSphere® eXtreme Scale Client.
Procedure
- Configure Eclipse to build and run a Java SE application with WebSphere eXtreme Scale Client.
- Define a user library to allow your application to reference WebSphere eXtreme Scale Client application programming interfaces.
- In your Eclipse or IBM Rational® Application Developer
environment, click .
- Expand the branch and select User Libraries. Click New.
- Select the eXtreme Scale user library. Click Add JARs.
- Browse and select the ogclient.jar files from the wxs_root/lib directory. Click OK.
- To include Javadoc for the ObjectGrid APIs, select the Javadoc location for the ogclient.jar file that you added in the previous step. Click Edit.
- Click OK to apply the settings and close
the Preferences window.
The eXtreme Scale libraries are now
in the build path for the project.
- Add the user library to your Java project.
- From the package explorer, right-click the project and select Properties.
- Select the Libraries tab.
- Click Add Library.
- Select User Library. Click Next.
- Select the eXtreme Scale user library that you configured earlier.
- Click OK to apply the changes and close
the Properties window.
- Run a Java SE application
in Eclipse. Create a run configuration to run your application.
- Configure Eclipse to build and run a Java SE application with WebSphere eXtreme Scale Client. From the Run menu select Run Configurations.
- Right-click the Java Application category and select New.
- Select the new run configuration, named New_Configuration.
- Configure the profile.
- Project (on main tabbed page): your_project_name
- Main Class (on main tabbed page): your_main_class
- VM arguments (on arguments tabbed page): -Djava.endorsed.dirs=wxs_root/lib/endorsed
Problems with the VM Arguments often
occur because the path to java.endorsed.dirs must
be an absolute path with no variables or shortcuts.
Other
common setup problems involve the Object Request Broker (ORB). You
might see the following error. :
Caused by: java.lang.RuntimeException: The ORB that comes
with the Sun Java implementation does not work with
ObjectGrid at this time.
- Click Apply and close the window,
or click Run.