I am trying to open Jmeter by the batch file but it gives me a Windows error

72,484

Solution 1

i was getting the same error on WIndows 8.1(64 bit) and checked java path but it was ok

so i just run my jmeter.bat with Run as Administrator and it worked for me

Solution 2

Many operating systems have an environment variable such as PATH that contains a list of directories (or folders) to be searched when looking for a command to execute. Commands that can be found via the PATH are commonly called external commands. The program that reads the command line or the batch file and invoked the commands may have a number of built in commands, these are commonly called internal commands.

I suggest you examine the PATH (or equivalent) set when your java command executes from the command line and also when execution is attempted from the batch file. Compare the two and make sure the directory containing your java.exe is in the PATH.

Solution 3

Does not work with Java 9 beta:

Running:

 C:\java -version

Gives:

java version "9-ea"

Just go into command line and run:

java -jar ApacheJMeter.jar

Solution 4

Set the correct Java Path (installed in your system) in Computer -> Advanced System settings -> Environment Variables -> Ok -> System Variables -> Path

I got the same issue and resolved by following the above steps.

Solution 5

I tried everything, this eventually worked.

Within System Variables:

PATH = "C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.8.0_101\bin"

May help someone.

Share:
72,484
Admin
Author by

Admin

Updated on April 30, 2020

Comments

  • Admin
    Admin about 4 years

    Here is the related error its showing:

    java.exe is not a recognized file as an internal or external command, operable or external command

    errorlevel=9009

  • Aniket Thakur
    Aniket Thakur almost 9 years
    Same with me for windows 7 as well.
  • Anshuman Singh
    Anshuman Singh almost 8 years
    same with win10 x64
  • Bruno Bieri
    Bruno Bieri over 7 years
    Same here Win7 x86.
  • Pieter De Bie
    Pieter De Bie almost 7 years
    I had the same problem, but I just removed all the java version check logic from the .bat.
  • Flowy
    Flowy almost 6 years
    This is valid only for you, your JRE was installed as Administrator, that is reason why Jmeter without leveraged privilege can not see it.