1

我想在 eclipse 中设置 apache jmeter。我下载了源文件,然后将项目添加到 eclipse 中,但随后出现以下错误。我还下载了二进制文件,我不知道在哪里添加这些文件。但我没有找到互联网上有关此的任何资源。

java.lang.Throwable: Could not access F:\Users\NaTzI\JavaEE\lib
    at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
java.lang.Throwable: Could not access F:\Users\NaTzI\JavaEE\lib\ext
    at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
java.lang.Throwable: Could not access F:\Users\NaTzI\JavaEE\lib\junit
    at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
java.lang.Error: Unresolved compilation problems: 
    The import org.apache.log cannot be resolved
    The import com.thoughtworks cannot be resolved
    Logger cannot be resolved to a type
    The method getLoggerForClass() from the type LoggingManager refers to the missing type Logger
    Logger cannot be resolved to a type
    ConversionException cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type
    Logger cannot be resolved to a type

    at org.apache.jmeter.JMeter.<init>(JMeter.java:90)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.jmeter.NewDriver.main(NewDriver.java:216)
JMeter home directory was detected as: F:\Users\NaTzI\JavaEE

我应该怎么办???

4

1 回答 1

1

主类:org.apache.jmeter.NewDriver

工作目录:${workspace_loc:apache-jmeter/bin}

类路径:apache-jmeter/lib 和 apache-jmeter/lib/ext 中的所有 jars

于 2013-10-14T07:40:26.027 回答