user2720919
user2720919

Reputation: 27

Unable to see Graphs created using Java API in Neo4j browser

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

Answers (1)

cybersam
cybersam

Reputation: 67019

In your neo4j.conf file, you need to set these 2 properties appropriately:

  • dbms.directories.data

    • This must specify a directory path.
    • This path must have a databases subdirectory (but that subdirectory must not be included in the dbms.directories.data value).
  • dbms.active_database

    • This must be the directory containing the actual neo4j graph DB (i.e., it contains the indexes and data files).
    • This directory must be a child of the above-mentioned databases directory.

Upvotes: 0

Related Questions