AppSync: When the AppSync CLI is called from a drive other than the AppSync install drive it will fail with a Java error.

Summary: The Appsync-CLI fails to run when called from a drive that the Appsync Server is not installed on. It will work fine when called from the Appsync server install drive.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms



When the AppSync-cli.bat file is called from a drive that the AppSync server is not installed on, the following error will be received and the CLI will not run.
 
'java' is not recognized as an internal or external command, operable program or batch file.

For example if Appsync is installed in F:\EMC\AppSync and the a user runs the command F:\EMC\AppSync\AppSync-cli\Appsync-cli.bat from the C:\ drive the above error will be seen. But if they change directory to the F:\ drive the and then run the batch file it will run correctly.

Cause

The Appsync-CLI batch file was designed to only run from the AppSync Servers install drive. When it runs from another location some information is not correctly passed to the Batch file.

Resolution

Workaround:

  1. There are two possible solutions.Always call the batch file from the same drive as the AppSync Server has been installed on. This may mean modifying some batch files to ensure they change to the appropriate drive before running.
  2. Create a new batch file and paste the following. This batch file can be called from any location on the AppSync Server.
@echo off
:Script to start AppSync CLI

setlocal
set params=%*
set CLIHOME=%~dp0
set CLIHOME=%CLIHOME:\=\\%
cd %CLIHOME%
set APPSYNCHOMEDRV=%CLIHOME:~0,2%
%APPSYNCHOMEDRV%
cd ..
set APPSYNCHOME=%CD:\=\\%\\


set JAVA=java
if exist "%APPSYNCHOME%jboss\\_jre\\bin\\java.exe" set JAVA="%APPSYNCHOME%jboss\\_jre\\bin\\java.exe"

set CP=%CP%;"%CLIHOME%appsync-cli.jar"
set CP=%CP%;%APPSYNCHOME%
set CP=%CP%;%CLIHOME%

%JAVA% -Xmx200m -cp "%CP%" com.emc.archway.CLI.AppSyncCLI %params%

Affected Products

AppSync

Products

AppSync
Article Properties
Article Number: 000052358
Article Type: Solution
Last Modified: 18 Sep 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.