Reputation: 27
I have written a Java program to create graphs in Neo4j and I followed the below tutorial. The Java program works perfectly and does create nodes and relationships. I have written another Java program to cross check the data using Java Cypher API.
https://www.tutorialspoint.com/neo4j/neo4j_native_java_api_example.htm
So, I have below code to create the database:
public static File Neo4j_DB = new File("C:/TPNeo4jDB/databases/graph.db");
public static GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();
public static GraphDatabaseService graphDb=
dbFactory.newEmbeddedDatabase(Neo4j_DB);
But I am using Neo4j 3.3 and after downloading the zip version, I do not see Neo4j community edition dialog box that would help me to browse through the database created. So, when I go to http://localhost:7474/browser/, I do not see any data as it is still pointing to the default database. I tried changing the configuration file but it is not working but it seems I am not doing it correctly.
Upvotes: 0
Views: 261
Reputation: 67019
In your neo4j.conf
file, you need to set these 2 properties appropriately:
dbms.directories.data
databases
subdirectory (but that subdirectory must not be included in the dbms.directories.data
value).dbms.active_database
databases
directory.Upvotes: 0