I am having trouble accessing a JanusGraph instance. The documents show sample code such as the following:
Graph graph = EmptyGraph.instance();
GraphTraversalSource g =
graph.traversal().withRemote("conf/remote-graph.properties");
and it works, but what I want is to get a JanusGraph instance, because almost all the examples given on the internet are based on JanusGraph instance, including the official examples and the bulk import utils, e.g.,
so I found another page about it. I then tried the following:
GraphTraversalSource g =
JanusGraphFactory.open("inmemory").traversal().withRemote(config);
but when i do this, the procedures end up with:
ClassNotFindException: OptionSteps.class
So I wonder, how can I get the JanusGraph instance in my Java code? The code is running on Windows, and the JanusGraph is running on a Linux server—does it matter? Do I have to run them together to find the OptionSteps
class?