Using the Java API example

RPE ships with an example application built on the java API. The source code for the application is found in %RPE_HOME%\lib\api\examples\

To build the application you need to follow the procedure described here: Building the sample application We use Eclipse as the development environment but you can use any Java IDE you want as long as it uses a Java 6 SDK. See Preparing the your environment to use the API

Once your application is built and you export it as a jar you can use it as described in the Command line switches for the example

More information on the API, such as most common use cases is available in the Using the Java API section of the RPE Infocenter.

A build of the example and a Windows script to launch it have been made available on the new RPE Wiki To use them you need to do the following:

  1. copy the SampleDocgen.jar in %RPE_HOME%\lib
  2. invoke SampleDocgen.bat with the full path of the DSX you want to run. If the path contains whitespaces you need to enclose it in “

Example:     SampleDocgen.bat “d:\rpe\test API\sample.dsx”

About these ads

About Dragos Cojocari

Architect for Rational Publishing Engine
This entry was posted in Rational, Rational Publishing Engine, RRDG, Tips&Tricks. Bookmark the permalink.

3 Responses to Using the Java API example

  1. werner says:

    hello Dragos- I tried to access some of the URLs on this page and they dont work :(

  2. Pingback: RPE Java API example built for 1.2.1 | Rational® Publishing Engine™ Actual

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s