Problem with starting a windows agent.

Document ID : KB000089772
Last Modified Date : 14/04/2018
Show Technical Document Details
Problem with starting a windows agent.
Detailed Description and Symptoms

Trying to start a windows agent/executor and you are receiving the following error: 

Error in CreateProcess Call, Errorcode 2 

Cmd: "javaw" -Xmx256m com.uc4.ucdf.UCDialogFactory -Uscott  
Path: . 
The system connot find the file specified 
Exit Loader with exitcode 2 


?The error "The system connot find the file specified" is refering to the "javaw" command.

As a test, open a dos command line and type the following:
> java -version

If this returns:
'java' is not recognized as an internal or external command,
operable program or batch file.

Then this means the directory path for fine the java executable is not in the windows environment variable %path%.

Please add the java bin directory to the windows Path and restart the agent.