我正在使用OrientDB Native Java Driver与Orient DB Server进行简单连接。我正在关注OrientDb Github link以获取基本设置说明。我添加了github链接中提到的五个jar,orient-commons-*.jar, orientdb-core-*.jar, orientdb-object-*.jar, orientdb-client-*.jar, orientdb-enterprise-*.jar
。但是,我仍面临以下错误。我用谷歌搜索,找不到任何关于哪个jar文件丢失的答案?请指教。
Exception in thread "main" java.lang.NoClassDefFoundError: com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap$Builder
at com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeCollectionManagerAbstract.<init>(OSBTreeCollectionManagerAbstract.java:22)
at com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeCollectionManagerAbstract.<init>(OSBTreeCollectionManagerAbstract.java:28)
at com.orientechnologies.orient.client.remote.OSBTreeCollectionManagerRemote.<init>(OSBTreeCollectionManagerRemote.java:34)
[... removed lines ... ] com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:54)
at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:54)
at com.orientechnologies.orient.object.db.OObjectDatabaseTx.open(OObjectDatabaseTx.java:102)
at org.poc.orientdb.jdbc.OrientJDBC.<init>(OrientJDBC.java:18)
at org.poc.orientdb.jdbc.OrientJDBC.main(OrientJDBC.java:32)
Caused by: java.lang.ClassNotFoundException: com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap$Builder
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:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 18 more
答案 0 :(得分:3)
不确定这是否会对您有所帮助,但看起来您提到的课程是在“concurrentlinkedhashmap-lru-1.1.jar”中