【问题解决方案】之 jmeter启动报错:Not able to find Java executable or version. Please check your Java installation

时间:2021-11-28 17:07:48

  • 故事发生在云计算实验课上……
    ** 故事发生在云计算实验课上……

Step 1 在Xshell中登录自己的cloud虚拟机后,<sudo su ->切换到root用户

Step 2 <~/tpcw/apache-tomcat-8.5.23/bin/startup.sh>启动虚拟机装好的TPC-W(an e-commerce website, which supports online shopping and payment)

Step 3 Download Apache Jmeter from office website and unzip

Step 4 解压后进入bin中找到 jmeter.bat 并双击(嗷,老师的文档这么写的,double-click)

Not able to find Java executable or version. Please check your Java installation.

Step 5 google之,并从*上找到了满意的解决方案,即右击用管理员身份运行.bat文件即可成功启动JMeter。

Step 6 又试了一下安装jvm9的版本,确定一下到底是不是Java版本问题,但仍然是

Error: Java version -- 9.0.1 -- is too low to run JMeter. Need a Java version greater than or equal to 1.8.0

只好又装回JVM1.8.0

原答案链接
https://*.com/questions/20717051/i-am-trying-to-open-jmeter-by-the-batch-file-but-it-gives-me-a-windows-error