2013-10-12 57 views
1

我想在eclipse.i中設置apache jmeter下載的源文件,然後將項目添加到eclipse中,但然後我得到以下錯誤..我也下載了二進制文件,我不知道在哪裏添加這些files.but我didn'在網上找到關於此的任何資源。如何在eclipse中配置Apache JMeter?

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 

我該怎麼辦?

+0

問題是舊的,但我想評論,因爲這仍然是一個問題。當我開始定製JMeter並且想用Eclipse來進行定製時,我面臨着同樣的挑戰。在下面的鏈接中的「2.使用ANT目標運行JMeter」部分,我已經介紹了ANT問題和其他可能面臨的端到端配置問題。 [http://p3lang.com/2016/03/configure-jmeter-in-eclipse/](http://p3lang.com/2016/03/configure-jmeter-in-eclipse/) –

回答

1

主要類:org.apache.jmeter.NewDriver

工作目錄:$ {workspace_loc:Apache的JMeter的/ bin中}

類路徑:在Apache的JMeter的/ lib和Apache的JMeter的所有罐/ lib/ext