0

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.

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. Fix the build path then try building this project janusgraph Unknown Java Problem

Fruchtzwerg
  • 10,999
  • 12
  • 40
  • 49
swarncar
  • 1
  • 1

1 Answers1

1

This questions was also asked on the janusgraph-users Google Group. My answer from that thread:

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.

Community
  • 1
  • 1
Jason Plurad
  • 6,682
  • 2
  • 18
  • 37