gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 12:04:10 25 4
gpt4 key购买 nike

我尝试通过 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com