IBM Support

Cannot find Java Virtual Machine file error when opening Rational Rhapsody



IBM Rational Rhapsody shows a JVM error on every time opening a Rhapsody instance. This could potentially hamper features like XMI Import Export if not fixed.


Error pop up on opening an IBM Rational Rhapsody instance:

Cannot Find Java Virtual Machine file (JVM.dll).

Please update the JavaLocation entry under the [JVM] section in your rhapsody.ini file.


One of the following could cause the JVM error:

  • No Java instance installed
  • Incompatible version of Java installed
  • More than one version of Java installed
  • Java bin path conflict

Resolving The Problem

To resolve this issue, follow the instructions in the items noted below based on the diagnosis noted:

  • No java installed :
    1. Install Java and take the following actions as mentioned in Option 4
  • Incompatible version of Java installed :
    1. Open command prompt and type java –version to get the version of Java
    2. Install compatible version with that particular Rhapsody version
  • More than one version of Java installed :
    1. If it’s a lower version already present then install the necessary higher version
    2. If there is a higher version than required remove the java version
    3. In either case follow the next steps mentioned in Java bin path conflict below
  • Java bin path conflict
  • Check in the environment variable PATH if it has the path to the java bin directory, if not add the path to bin directory.

    There could be a chance that there are more then one .ini files, check in the installation directory and also in C:\windows (Ideal one is the one present in that Rhapsody installation directory)

    Run jdkrun.bat and jdkmake.bat in your rhapsody/share/etc directory

    The ini file should look like the few lines below:


    JavaLocation=C:\Program Files\Java\jdk1.5.0_05\


    ClassPath=-Djava.class.path=C:\Program Files\Telelogic\Rhapsody7.2\Share\JavaAPI\rhapsody.jar

    LibPath=-Djava.library.path=C:\Program Files\Telelogic\Rhapsody7.2\Share\JavaAPI

    Also the path should not point to JDK but to JRE, for example: inside Java folder.

    Disconnect "C:\WINDOWS\rhapsody.ini", as requested in the pop-up dialog.

    (If at all there is a pop up that appears, else continue further)

    Instead of setting "JavaLocation" to the full path of the folder containing "jvm.dll", omit the subfolders "\bin\client" from the end of that path.

    The associated example is below:

    The file "jvm.dll" is in the folder "C:\Program Files\Java\jre1.5.0_06\bin\client".

    Recheck if jvm.dll is present in this folder.

    Using "JavaLocation=C:\Program Files\Java\jre1.5.0_09\bin\client" in the INI file still causes the error.

    Using "JavaLocation=C:\Program Files\Java\jre1.5.0_09" in the INI file removes the error.

    Note: C:\Program Files\Java or C:\Program Files\Telelogic\Rhapsody7.2\ is used for example; this should be specific to your actual installation directory.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;;7.4;7.3;7.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022