Creating a Java project for the API
Create a Java™ project
and copy the library files into the project.
Procedure
- Create a new Java project.
- Use a non-null namespace for the Java project.
- Configure the project for Java 6 development.
- Create a lib directory in your Java project.
- Copy the plug-ins in the lib directory
in the Rational® Publishing Engine installation
files.
- To build 32-bit applications, copy the plug-ins in the %RPE_HOME%/lib directory.
- To build 64-bit applications, copy the plug-ins in the %RPE_HOME%/lib/64 directory.
- Paste the plug-ins in the lib directory of your project. Do not copy the .dll or .so files. Example: project/lib
- Provide your application access to the necessary .dll and .so files
in the Rational Publishing Engine library.
- 32-bit applications:
- RPE_HOME/lib/rcl_telelogic.dll
- RPE_HOME/lib/librcl_telelogic.so
- 64-bit applications:
- RPE_HOME/lib/64/rcl_telelogic.dll
- RPE_HOME/lib/64/librcl_telelogic.so
To provide the application access to these files, you can either:
- Add the filepaths to the application startup script. This option ensures that your application is self-contained no matter where it runs.
- Add the filepaths to the PATH system variable. If you choose this option, you must complete this step on every computer that uses the application.
- 32-bit applications:
- Update the class paths with the paths to the plug-ins in the project.
Related tasks:
Feedback