FindstrCommandNotFound

    Problem:

     

    You see the below exception when you start the server using run.bat:

     

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

     

     

     

     

    Solution:

     

    The 4.0.5 run.bat script has this new piece to check if the JVM supports the -server flag, in order to add it.

     

     

    rem Add -server to the JVM options, if supported "%JAVA%" -version 2>&1 | findstr /I hotspot > nul if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)      

     

     

     

    'findstr' must be on the PATH. It's under windows\system32 on my winxp box.

     

     

    Same is the case for 4.2.1.I request Jboss to update run.bat to include the windows\system32 in system path.