You can develop custom modules on any operating system that can run a Java Software Development Kit, including, for example, Windows and *nix platforms such as Linux or Mac OS. Ensure you have administrator rights on your workstation in order to install any required applications.

To install the Rhapsody RDK, perform the following steps:

Install Java Development Kit (JDK)

To install the JDK, (required for Eclipse), download and install it from the Prebuilt OpenJDK Binaries webpage or Oracle's Java SE Development Kit 8 Downloads webpage. Refer to JRE Version and Update Policy to determine which JRE version is supported for the operating system you are using.

Install Eclipse

To install Eclipse (required for plug-in development), download Eclipse IDE for RCP and RAP Developers from the Eclipse website and unzip it.

To run Eclipse, navigate to the extracted Eclipse directory and run the installation file. You can right-click on this file and pin it to your Start Menu for quick access.

Copy Rhapsody Files

Eclipse uses Rhapsody files for custom module development. 

Instead of using files from an actual Rhapsody Engine installation, it is recommended you create a separate 'development' folder and copy the relevant files into it. Copy the following directories and files from Rhapsody's installation directory:

File or Directory Notes
jre Copy the entire directory.
plugins Copy the entire directory.
rhapsody/log4j.properties Used for configuring console logging. If you do not copy the file, a default file is generated which does not log to Eclipse.

rhapsody/rhapsody.properties

Used for configuring Rhapsody properties and ports. Ensure you update the directory paths to new locations in the copied file before running Rhapsody. If you do not copy the file, no default file is generated and default values from the Rhapsody engine are used.

You do not have to run Eclipse on Windows to develop custom modules. For example, if you want to develop in a Mac OS environment, you can copy the files from a Windows Rhapsody engine onto your Mac.

Install the Rhapsody RDK Wizard

To install the Rhapsody RDK wizard:

  1. Raise a Support Tracker ticket to request the Rhapsody RDK installation file.
  2. Download and extract the Rhapsody RDK installation file to a convenient location.
  3. Locate the wizard JAR file (com.orchestral.rhapsody.eclipsewizard.jar) and copy the JAR file into the plugins folder of your Eclipse installation.
  4. You may need to restart Eclipse for it pick up this change.
  5. To verify Eclipse has picked up this change successfully, navigate to File>New>Other... and verify the Rhapsody Wizards folder is listed.

Configure Eclipse

Add a Rhapsody Java Runtime Environment

It is recommended you configure Eclipse to use the Rhapsody Java Runtime Environment (JRE) to avoid any potential issues resulting from differing JRE versions.

To add a Rhapsody JRE:

  1. From Eclipse, navigate to Window>Preferences>Java>Installed JREs.
  2. Select Add... to display the Add JRE window.
  3. For the JRE Type, Select Standard VM and then select the Next button:

  4. To set the JRE home, select the Directory button. Navigate to your Rhapsody engine's jre folder and select the OK button:

  5. Select the Finish button:

  6. Now select the Rhapsody JRE as your default runtime JRE and then select the OK button:

  7. Eclipse is now configured to use the Rhapsody JRE.

Configure the Target Platform

Configuring the target platform enables you to run Rhapsody from Eclipse, and test and debug your custom components during development.

To create a Rhapsody target platform:

  1. From Eclipse, navigate to Window>Preferences>Plug-in Development>Target Platform.
  2. Select the Add... button:

  3. Select Nothing: Start with an empty target definition and then select the Next button:

  4. To set the Target Content, under the Locations tab, select the Add... button:

  5. To set the plug-ins source as a directory, select Directory and then the Next button:

  6. Select Browse... button and browse to the Rhapsody plugins folder on your computer, and then select the OK button:

  7. Select the Finish button:

  8. Enter a name for your target platform, for example Rhapsody 6.2.0, and then select the Finish button:

  9. Select the new Target Platform in order to make it active and then select the OK button:

  10. The Target Platform is now configured.

Install Third-party Tools

Install GIMP

You can use Gimp, a free open source bitmap editor, to convert icon images into the legacy 24-bit BMP images required by the Rhapsody IDE.

Install Text Editor

Install a suitable text editor for viewing log files:

  • On Windows, Notepad++ can be used for viewing the Rhapsody log. 
  • On *nix machines, you can use tail -f <filename>.

Install SOAP-UI

SOAP-UI can be used for interrogating the Rhapsody engine for communication point IDs. Download a free version from: http://sourceforge.net/projects/soapui/files/.

Configure Logging

To configure Rhapsody's log4j logger to write to the Eclipse console:

  1. Open the log4j.properties file in the rhapsody directory in the Rhapsody installation directory:

     

  2. Add the ConsoleAppender parameter to the log4j.rootLogger property:

     

  3. Rhapsody can now write logs to Eclipse.

Verify Rhapsody RDK Set-up

To verify that you can run Rhapsody through Eclipse, refer to Using a New Run Configuration for details.