2017-10-31 7 views
0

Java 클라이언트를 통해 Cassandra의 janus 그래프에 액세스하려고하지만 Client 클래스를 통해 등록 정보 파일을 사용할 수 없습니다.Janus 그래프 - gremlin-server - Java 클라이언트 - apache.commons.configuration의 클래스 파일을 찾을 수 없습니다.

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

+0

프로젝트를 빌드하는 데 Apache Maven을 사용하고 있습니까? pom.xml에 어떤 종속성을 포함 시켰습니까? –

답변

1

이 질문은 또한 janusgraph-users Google 그룹에 질문을 받았다. 그 스레드에서 내 대답 :

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.