The main difficulty here is the Java interface for the Rhapsody-API, which is used by the WSTDeployer. It accesses Rhapsody.jar, which is installed along with the Rhapsody user data files (e.g. in "C:\Users\<username>\IBM\Rational\Rhapsody\<version>\Share\JavaAPI").
If Rhapsody 32-Bit is installed, the rhapsody.jar needs to be accessed with a 32-Bit Java Runtime Environment (JRE). The Rhapsody 64-Bit version makes the use of a 64-Bit JRE necessarry.
Using inproper bit-version combinations can cause error messages like:
- Code: Alles auswählen
Exception in thread "main" java.lang.UnsatisfiedLinkError: <path>\rhapsody.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
In our experience the following setups are unproblematic and without pitfalls:
- Windows 7 32-Bit
- Java Runtime Environment 32-Bit
- IBM Rational Rhapsody 32-Bit
- Windows 7 64-Bit
- Java Runtime Environment 32-Bit
- IBM Rational Rhapsody 32-Bit
We currently do not recommend using Rhapsody 64-Bit Editions. With the right 64-Bit JRE they work together with the Willert Deployer just fine, but also other extensions or plugins still seem to cause problems.
It is possible to have both, the 32-Bit and 64-Bit JRE installed in parallel on a Windows 64-Bit machine. In that case the safest way to make sure the WSTDeployer uses the correct JRE-Version is to edit WSTDeployer.bat. It can be found at: "<Willert folder>\<RXF release name>\Tools\WSTDeployer\WSTDeployer.bat". In that file modify the call of "java" by adding the abolute path to the matching bit version of the JRE. For example: "C:\Program Files\Java\jre7\bin\java.exe". Make sure to use quotes, if the path contains space characters.