IBM Support

Unable to execute ant.cmd -f HFInstall.xml installHF during Hotfix installation on MCF 8.0

Troubleshooting


Problem

Unable to execute ant.cmd -f HFInstall.xml installHF during Hotfix installation on MCF 8.0

Symptom

Installing HF on Foundation 8.0 errors when 'ant.cmd -f HFInstall.xml installHF' is executed.

Error Message

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>ant.cmd -f HFInstall.x
ml installHF

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>/*
'/*' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>Copyright 2003-2004 Th
e Apache Software Foundation
'Copyright' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>Licensed under the Apa
che License, Version 2.0 (the "License");
'Licensed' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>you may not use this f
ile except in compliance with the License.
'you' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>You may obtain a copy
of the License at
'You' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>http://www.apache.o rg/
licenses/LICENSE-2.0
'http:' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>Unless required by app
licable law or agreed to in writing, software
'Unless' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>distributed under the
License is distributed on an "AS IS" BASIS,
'distributed' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
'WITHOUT' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>See the License for th
e specific language governing permissions and
'See' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>limitations under the
License.
'limitations' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>Run ant
'Run' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>*/
'*' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>'@echo off'
''@echo' is not recognized as an internal or external command,
operable program or batch file.

C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>parse arg mode envarg
'::' antarg
'parse' is not recognized as an internal or external command,
operable program or batch file.
='.' was unexpected at this time.
C:\SSCAP80\Temp_Install\Foundation80-HF45\HFInstaller\bin>if mode\='.' & mode\='
..' & mode\='/' then do

Resolving The Problem

Sterling 8.0 onwards ant is shipped along with the application and can be located <install_dir>\bin.

However if ant is already present on the installation boxes specify <ant_home>\bin in the path(environment variable) then it will pick up from there. So remove the entry for <ant_home>\bin from path. Also make sure <install_dir>\bin has been added at beginning of path.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX6563

Product Synonym

[<p><b>]Severity[</b><p>];Normal

Document Information

Modified date:
16 June 2018

UID

swg21555160