2016-12-10 103 views
0

我正在嘗試在Eclipse中使用Neuroph神經網絡庫。自述文件中指出:Eclipse中的神經網絡

要在Java應用程序中使用Neuroph,請添加對neuroph-core-x.x.jar(以及您想要使用的所有其他jar)的引用,並導入所需的類。 所需的所有第三方附加庫都可在此分發的lib文件夾中找到。

我在我的項目構建路徑中包含了neuroph-core-x.x.jar並導入了org.neuroph.nnet。 ,org.neuroph.core。,org.neuroph.util。*根據需要。當我導入所有從lib文件夾中的額外的第三方庫,我收到運行多層感知樣本時的錯誤:

SLF4J: Class path contains multiple SLF4J bindings. 
SLF4J: Found binding in [jar:file:/Users/ajd/Desktop/neuroph-2.92/libs/slf4j-nop-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/Users/ajd/Desktop/neuroph-2.92/libs/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory] 

當我刪除這兩個衝突的文件,我收到以下錯誤:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 

該程序不會終止,但只是繼續顯示上述錯誤,從來沒有做任何事情。

如果我刪除任何衝突文件(但保留其他的),那麼就說明沒有錯誤,但再一次只運行,從來沒有到達任何結果/輸出

我錯過了一些額外的步驟嗎?

+0

我認爲這是經典的jar陰影的情況下,刪除其中一個罐子和檢查,你celinly有2個版本的StaticLoggerBinder – Ironluca

回答