0

我开始给你骨cp。到目前为止,以下是我在 centos 6 上所做的事情 以下是我将文件放在我的 centos 6 上的方式。

/usr/java/jdk1.7.0_03/jre/lib/ext/bonecp-0.7.1.RELEASE.jar
/usr/java/jdk1.7.0_03/jre/lib/ext/guava-11.0.2.jar
/usr/java/jdk1.7.0_03/jre/lib/ext/slf4j-1.6.4 (the whole folder I just put here).

以下是我现在得到的错误。

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
        at com.jolbox.bonecp.BoneCPConfig.<clinit>(BoneCPConfig.java:60)
        at commServer.<init>(cServer.java:6594)
        at commServer.main(cServer.java:6579)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
4

1 回答 1

0

It appears that you don't have the SLF4J library associated with your project. BoneCP needs 2 extra libraries and SLF4J is one of them. You can find the required libraries here.

于 2012-04-05T14:08:18.580 回答