KB-1213 "'findstr' is not recognized as an internal or external command, operable program or batch file" error thrown after attempting to start JBoss

Symptoms

On a Windows Operating System, after starting JBoss application server, the following message is returned:

'findstr' is not recognized as an internal or external command, operable porgram or batch file.

Note: The application server logs folder does not get created in case of a new installation.

Cause

The script to start the application server calls the findstr.bat file, which is located in the <SYSTEM_DRIVE>\Windows\system32 directory. The above message is returned when the Path variable is not correctly set in system settings.

Action

The correct Path variable can be set by performing the following steps:

  1. Click on Start, then right-click on My Computer > Properties > Advanced System Settings.
  2. Edit the Path variable.
  3. At the beginning of the field, add either <SYSTEM_DRIVE>\WINDOWS\system32; or %SystemRoot%\system32;.
  4. Save and exit.

Note: In order for those changes to take effect, you will need to start a new Windows Command Processor (cmd.exe) session.

Affected Versions

This article applies to all versions of Appian using JBoss application server.

Last Reviewed: March 2017

Related
Recommended