9 Replies Latest reply on Jul 29, 2013 9:02 AM by Nicklas Karlsson

    jboss-as-7.1.1.Final- 'findstr' is not recognized as an internal or external command operable program or batch file

    Asif Ayaz Newbie

      I get the Error; as follows when I try to start the Jboss server.

       

      C:\jboss-as-7.1.1.Final\bin> standalone.bat

      Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"

      'findstr' is not recognized as an internal or external command,

      operable program or batch file.

       

       

      I did gogled and tried the following Solutions but to no avail; 

       

      1. Commented "Findstr" in the following lines.. in the file standalone.cof

       

       

      echo "%JAVA_OPTS%" | findstr /I \-server > nul

        if errorlevel == 1 (

          "%JAVA%" -client -version 2>&1 | findstr /I /C:"Client VM" > nul

      --

      echo "%JAVA_OPTS%" | findstr /I "\-XX:\-UseCompressedOops \-client" > nul

       

       

      --

      echo "%JAVA_OPTS%" | findstr /I "\-XX:\-TieredCompilation \-client" > nul

       

       

      2. Installed JDK6 U 34( earlier I was running on jre

       

      3. Copied findstr.exe to jbossx.x.x/bin directory & then to the JAVA_HOMe/bin  directory

       

       

      4. Added "C:\Windows\System32" to the "Path" of "system variables"

       

       

      All the Above did not Yield Any result.

       

      -------------------------------------------------------------------------

      OS: Windows 2008

      Jboss version :jboss-as-7.1.1.Final

       

      C:\jboss-as-7.1.1.Final\bin>echo %JAVA_HOME%

      C:\Program Files\Java\jdk1.6.0_34

       

      C:\jboss-as-7.1.1.Final\bin>path

      PATH=%JAVA_HOME%\bin;C:\WINDOWS\system32

       

       

      C:\jboss-as-7.1.1.Final\bin>set

      ALLUSERSPROFILE=C:\ProgramData

      APPDATA=C:\Users\Administrator\AppData\Roaming

      CLIENTNAME=SNG-INF-VWJH01

      CommonProgramFiles=C:\Program Files\Common Files

      CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files

      CommonProgramW6432=C:\Program Files\Common Files

      COMPUTERNAME=CIAC31

      ComSpec=C:\Windows\system32\cmd.exe

      DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection

      FP_NO_HOST_CHECK=NO

      HOMEDRIVE=C:

      HOMEPATH=\Users\Administrator

      JAVA_HOME=C:\Program Files\Java\jdk1.6.0_34

      LOCALAPPDATA=C:\Users\Administrator\AppData\Local

      LOGONSERVER=\\CIAC31

      NUMBER_OF_PROCESSORS=4

      OS=Windows_NT

      Path=%JAVA_HOME%\bin;C:\WINDOWS\system32

      PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

      PROCESSOR_ARCHITECTURE=AMD64

      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 44 Stepping 2, GenuineIntel

      PROCESSOR_LEVEL=6

      PROCESSOR_REVISION=2c02

      ProgramData=C:\ProgramData

      ProgramFiles=C:\Program Files

      ProgramFiles(x86)=C:\Program Files (x86)

      ProgramW6432=C:\Program Files

      PROMPT=$P$G

      PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

      PUBLIC=C:\Users\Public

      SESSIONNAME=RDP-Tcp#0

      SystemDrive=C:

      SystemRoot=C:\Windows

      TEMP=C:\Users\ADMINI~1\AppData\Local\Temp\2

      TMP=C:\Users\ADMINI~1\AppData\Local\Temp\2

      USERDOMAIN=CIAC31

      USERNAME=Administrator

      USERPROFILE=C:\Users\Administrator

      VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection

      windir=C:\Windows

      windows_tracing_flags=3

      windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

       

      --------------------------------------------------------------------------------------------------------------------------------

       

      5. I copied findstr in to the jboss-as-7.1.1.Final/bin directory I get the error as follows ;

      C:\jboss-as-7.1.1.Final\bin>standalone.bat

      Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"

       

      ( No error).. But the Jboss Doesnt start.

       

       

       

      However I could run the other batch files successfully  .like adduser.bat file with the same setting ( Path/Java_Home)

       

      Can Some one throw more light on thsi.