简体   繁体   English

需要在 BoneCP 上确认

[英]Need confirmation on BoneCP

I am starting to you bone cp.我开始给你骨cp了。 So far below is what I have done my centos 6 Below is how I have put my files on my centos 6.到目前为止,下面是我所做的 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).

Below is the error I got now.下面是我现在得到的错误。

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)

It appears that you don't have the SLF4J library associated with your project.您似乎没有与您的项目关联的SLF4J库。 BoneCP needs 2 extra libraries and SLF4J is one of them. BoneCP需要 2 个额外的库, SLF4J就是其中之一。 You can find the required libraries here.您可以在此处找到所需的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM