2016-12-10 105 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

回答