[英]Janus Graph - gremlin-server - Java Client - Cannot find class file for apache.commons.configuration
I am trying to access the janus graph on Cassandra through Java Client, but not able to use the properties file through the Client class. 我正在尝试通过Java Client访问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");
error: 错误:
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.
找不到org.apache.commons.configuration.Configuration的类文件。 Fix the build path then try building this project janusgraph Unknown Java Problem
修复构建路径,然后尝试构建此项目janusgraph未知Java问题
This questions was also asked on the janusgraph-users
Google Group. janusgraph-users
Google janusgraph-users
也提出了这个问题。 My answer from that thread: 我从那个线程得到的答案:
org.apache.commons.configuration.Configuration
is not found in Apache commons-lang.在Apache commons-lang中找不到
org.apache.commons.configuration.Configuration
。 It is in Apache commons-configuration.它在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.
JanusGraph / TinkerPop堆栈有很多依赖项,因此最好的方法是使用Apache Maven或Gradle之类的工具来管理项目的依赖项,而不是一个个地添加jar。 Please refer to the code examples included with the distribution.
请参考发行版随附的代码示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.