search cancel

API Gateway: Gateway Migration Utility does not detect java in path

book

Article ID: 228689

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

The Gateway Migration Utility (GMU) does not find Java defined in the environment variable PATH. The GMU command fails to run the throws the error:

Please ensure "java" is in the PATH, set JAVA_HOME or run with --jdk option.

Cause

The GMU is mostly looking for the JDK option in the command or the JAVA_HOME environment variable.

Environment

Release : 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0

Component : Gateway Migration Utility

Resolution

Use one of the following to resolve this issue:

  • Add the --jdk option for the GMU command as
    • GatewayMigrationUtility.bat --jdk "C:\Program Files\Java\jdk-11.0.12" <other_options>
  • Add JAVA_HOME environment variable