Error "Can't execute command" and pdm_configure does not start

Document ID : KB000027405
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem: 

Whilst running pdm_configure an error dialogue of the following type appears:

Can't execute command. Command: "D:/Program Files/CA/SharedComponents/JRE/1.4.2_06\bin\javaw.exe" -DNX_ROOT="D:\PROGRA-1\CA\SERVIC~1" -Djava.net.preferIPv4Stack=true -cp "D:\PROGRA~1\CA\SERVIC~1\java\lib\configui.jar" com.ca.ServicePlus.configui.ConfigUI pdm_configure. Error: 193

Note: Actual drive and directory names may differ depending on where Service Desk was installed.

Cause: 

The problem noted above can occur when JAVA is installed to a location with spaces in the path.

Resolution:

To test if this is the case in this instance, from a command line, navigate to the JRE/bin directory.

Note: 

In the case above this is "D:\Program Files\CA\SharedComponents\JRE\1.7.0_10\bin\"

Run the following adjusting D:\PROGRA-1\CA\SERVIC~1 to point to the folder where Service Desk is installed:

javaw -DNX_ROOT="D:\PROGRA-1\CA\SERVIC~1" -Djava.net.preferIPv4Stack=true -cp "D:\PROGRA~1\CA\SERVIC~1\java\lib\configui.jar" com.ca.ServicePlus.configui.ConfigUI pdm_conf

If the pdm_configure GUI starts, the problem being discussed in this document is the problem you are experiencing.

There are two possible options to resolving the above problem:

 

  1. Install or reinstall Service Desk to a location without a space in the path
  2. Change the value of @NX_JRE_INSTALL_DIR in NX.env so that it uses the windows short name rather than the long name with spaces in it, e.g.: 

    Change @NX_JRE_INSTALL_DIR D:/Program Files/CA/SharedComponents/JRE/1.7.0_10

    To @NX_JRE_INSTALL_DIR D:/Program~1/CA/SharedComponents/JRE/1.7.0_10