错误: 找不到或无法加载主类 org.apache.jmeter.NewDriver

jmeter 加载报错: 错误: 找不到或无法加载主类 org.apache.jmeter.NewDriver

解决方法:

一般是环境变量问题:

检查环境变量: 配置 JAVA_HOME, JMETER_HOME, PATH, CLASSPATH等

比如:

CLASSPATH=  .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib\logkit-1.2.jar;%CATALINA%\lib\jsp-api.jar;

JAVA_HOME = C:\Program Files\Java\jdk1.8.0_121

JMETER_HOME = D:\apache-jmeter-5.0

你可能感兴趣的:(错误: 找不到或无法加载主类 org.apache.jmeter.NewDriver)