java - Janus Graph - gremlin-server - Java 客户端 - 找不到 apache.commons.configuration 的类文件

标签 java client gremlin janusgraph

我尝试通过 Java 客户端访问 Cassandra 上的 janus 图,但无法通过 Client 类使用属性文件。

public static void main(){

    Cluster cluster = Cluster.open("remote.yaml");
//  Cluster cluster2 = Cluster.build();

    Client client = cluster.connect();
    graph = JanusGraphFactory.open("conf/janusgraph-cassandra-solr.properties");

错误:

Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for org.apache.commons.configuration.Configuration. Fix the build path then try building this project janusgraph Unknown Java Problem

最佳答案

这个问题也在 janusgraph-users 上被问到。谷歌集团。我在该帖子中的回答:

org.apache.commons.configuration.Configuration is not found in Apache commons-lang. It is in Apache commons-configuration.

There are a lot of dependencies for the JanusGraph/TinkerPop stack, so you're best approach would be to use a tool like Apache Maven or Gradle to manage the dependencies for your project, rather than adding the jars one by one. Please refer to the code examples included with the distribution.

关于java - Janus Graph - gremlin-server - Java 客户端 - 找不到 apache.commons.configuration 的类文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47033034/

相关文章:

java - Android 在 Cordova 插件中使用自定义依赖项?

java - Android 可以通过蓝牙支持 Zeroconf/Bonjour 吗? TCP/IP 怎么样?

java - 如何在 JMS 中接收确认

node.js - 在 AWS 上使用 Titan DynamoDB 并从 NodeJs 进行查询

java - 在 gremlin 服务器脚本文件中使用自定义库

java - 为什么我的单例类会抛出 StackOverflowerror?

Java Web企业应用程序 "Client"

C Socket编程服务器向多个客户端发送相同的消息

c - C中的双向tcp套接字问题