BUILD FAILED when attempting to upgrade ant command
search cancel

BUILD FAILED when attempting to upgrade ant command

book

Article ID: 38673

calendar_today

Updated On:

Products

CA Service Catalog

Issue/Introduction

"ant upgrade-jre" command fails when trying to upgrade Catalog JRE with the following error messages from the Service Catalog - Command Prompt  (accessible under Start Menu). 

The following is sample output to upgrade to JRE 11.0.2

[input] Location of new Oracle JRE: 
D:\Program Files\Java\jre11.0.2\bin
[input] What is the version of the new Oracle JRE (e.g. 11.0.2):
11.0.2
BUILD FAILED
D:\Program Files\CA\Service Catalog\build.xml:1131: Catalog requires a server Java HotSpot(TM) Server VM 

Environment

CA Service Catalog 17.4 or higher

Cause

Path must be supplied correctly

Resolution

When prompted for the JRE location you should not specify the bin subfolder - in this case that would be "D:\Program Files\Java\jre1.8.0_45" 

Additional Information

For later releases of SDM (17.4) the version of JRE that should be used is between 11.0.2 to 11.99.99