JMeter-MyEclipse编译运行问题
按照 此贴 http://phoenix0529.iteye.com/blog/1530728
进行配置,然后用Ant编译Build.xml 是可以的。
但是如果run newdriver 就报错,如下:
java.lang.Throwable: Could not access E:\Workspaces\MyEclipse 10\lib
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
java.lang.Throwable: Could not access E:\Workspaces\MyEclipse 10\lib\ext
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
java.lang.Throwable: Could not access E:\Workspaces\MyEclipse 10\lib\junit
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
FATAL_E 2013-12-27 15:49:13.375 [jmeter.J] (): An error occurred:
java.lang.RuntimeException: Could not read JMeter properties file:E:\Workspaces\MyEclipse 10\bin\jmeter.properties
at org.apache.jmeter.util.JMeterUtils.loadJMeterProperties(JMeterUtils.java:190)
at org.apache.jmeter.JMeter.initializeProperties(JMeter.java:524)
at org.apache.jmeter.JMeter.start(JMeter.java:294)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
An error occurred: Could not read JMeter properties file:E:\Workspaces\MyEclipse 10\bin\jmeter.properties
------解决方案--------------------
我也碰到这样的问题
百度一下搜索到你的问题
不过原因我自己找到了
路径的问题 E:\Workspaces\MyEclipse 10\lib
查一下这个: tmpDir = userDir.getAbsoluteFile().getParent();
改为这个:tmpDir = userDir.getAbsolutePath()