You can run the sample REST API applications
in an Eclipse environment.
Before you begin
Before you can run the sample REST API Java™ applications, you must install and configure
Apache ANT, a Java-based build tool. For information about how to
install and configure Apache ANT, see http://ant.apache.org/.
In
addition, you must configure Eclipse to use a JRE Version 1.6 environment.
Procedure
To run the sample REST API applications in Eclipse:
- Create an Eclipse project and import the files from the ES_INSTALL_ROOT/samples/rest/admin directory.
- Right-click the project, click Properties,
and click . Select es.admin.rest.jar as
the JAR file to include.
- Right-click the project, click Properties,
and click . Select the
following files from the ES_INSTALL_ROOT\lib\axis2 directory:
- commons-codec-1.3.jar
- commons-fileupload-1.2.jar
- commons-httpclient-3.1
- commons-io-1.4.jar
- commons-logging-1.1.1.jar
- To run the application, right-click the project and click .
- Click the Arguments tab and type
the command arguments for the REST API sample.
- Click Run.