2017-10-31 19 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.