Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter Installation

Tags:

java

jmeter

How can I solve this error when running JMeter:

[root@bx1 bin]#./jmeter.sh 

java.lang.Throwable: Could not access /opt/apache-jmeter-2.6/lib/ext at org.apache.jmeter.NewDriver.(NewDriver.java:98)

java.lang.Throwable: Could not access /opt/apache-jmeter-2.6/lib/junit at org.apache.jmeter.NewDriver.(NewDriver.java:98)

java.lang.ClassNotFoundException: org.apache.jmeter.JMeter

at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at org.apache.jmeter.NewDriver.main(NewDriver.java:212)

JMeter home directory was detected as: /opt/apache-jmeter-2.6.

like image 395
cutejakes . Avatar asked Feb 12 '13 08:02

cutejakes .


1 Answers

Your JMeter installation may be broken.
You can possibly try the following:

  1. try to use a fresh installation of last available JMeter version instead of your current - if using 2.6 is no requirement in your case;
  2. check the integrity of downloaded JMeter archive against PGP or MD5 signatures;
  3. class org.apache.jmeter.JMeter should be in the file JMETER_HOME/lib/ext/ApacheJMeter_core.jar. Check if this is there or not. Check that jar is not broken;
  4. check that $JAVA_HOME is defined and points to actual JDK.
like image 173
Aliaksandr Belik Avatar answered Oct 19 '22 10:10

Aliaksandr Belik