title: Unable to run Jmeter.bat
body: <p>I'm trying to use Jmeter but am coming across an issue when I try and run it using the Jmeter.bat file.</p>
  
  <p>It's spits out the following error:</p>
  
  <pre><code>'java -version 2&gt;&amp;1 | findstr /i "version"' is not recognized as an internal or external command, operable program or batch file.
  Not able to find Java executable or version. Please check your Java installation.
  errorlevel=2
  Press any key to continue . . .
  </code></pre>
  
  <p>I've tried googling this and lots of posts mention that this error is usually down to the environment variables not being set correctly, but I'm fairly sure they are as if I type java or javac into the command prompt I get a response.</p>
  
  <p>I've got them set as follows:</p>
  
  <ul>
  <li>JAVA_HOME : C:\Program Files\Java\jdk1.8.0_25 </li>
  <li>JDK_HOME  : %JAVA_HOME%</li>
  <li>JRE_HOME  : %JAVA_HOME%\jre </li>
  <li>CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib </li>
  <li>PATH      : your-unique-entries;%JAVA_HOME%\bin</li>
  </ul>
  
  <p>I tried taking the string it's complaining about and pasted that into the command prompt by itself and it ran fine:</p>
  
  <pre><code>C:\Windows\System32&gt;java -version 2&gt;&amp;1 | findstr /i "version"
  java version "1.8.0_25"
  </code></pre>
  
  <p>So why is it throwing the error when running the batch file but not if I paste it in manually? The batch file is located in a folder in my C drive and I'm running by right clicking and selecting 'Run as Administrator'. If I just double click the .bat file I get the error: </p>
  
  <pre><code>Windows cannot find 'C:\apache-jmeter-2.13_src\bin\jmeter.bat'. Make sure you typed the name correctly, and then try again
  </code></pre>
  
  <p>Is the above error related or is that a separate permissions issue?</p>
  
  <p>Thanks for any help</p>