The following FINDSTR example gives me error.
"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
Error: ‘findstr’ is not recognized as an internal or external command, operable program or batch file.
Why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Okay, you need to make sure that
findstr.exeactually exists (inc:\windows\system32by default).If not (unlikely), that’s your problem.
If it does exist, make sure that the directory it exists in is in your path. Executing
pathfrom a command window will show this.Try to execute:
and see what happens. If that works and the Java one doesn’t, it’s possible that Java itself may be modifying the path in a way that makes
findstrdisappear.