Unable to start any DevTest service, get this error: Error: Could not create the Java Virtual Machine.

book

Article ID: 220949

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

When we start the Registry as a service, no logs get written out.  When we start the Registry as a server, we get this error:

-Djava.endorsed.dirs=/opt/CA/DevTest_10_5/bin//../lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Cause

The DEVTEST_HOME/jre folder is located in another folder outside of DevTest.  The Java is being set when the user logs on to the Linux machine for DevTest 10.5.1.

The version of Java on this machine is:

openjdk version "11.0.11" 2021-04-20 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.11+9-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9-LTS, mixed mode, sharing)

As per our documentation:  DevTest 10.5 does not support IBM JRE Version 7, Oracle JRE 1.7, or OpenJDK.

Some of the other machine that run DevTest 10.5.1 also have OpenJDK installed, but one machine still has a different version of OpenJDK:

openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mopenjdk version "1.8.0_292"

So if any of the other machines get restarted or have to restart any of the services you will get this same error.

Bottom line is DevTest 10.5.1 does not support OpenJDK in any version.

Environment

Release : 10.5

Component : CA Application Test

Resolution

Using OpenJDK with DevTest 10.5.0, which is not supported.

Once supported JRE was configured the services started.