cancel
Showing results for 
Search instead for 
Did you mean: 

Package org.neo4j.graphdb.factory.GraphDatabaseFactory does not exists

andrej_liebert2
Node Link

Hi there,
I want to embed Neo4j(4.1.0) in Java(jdk-11) with Maven(4.0.0) and following dependency:

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>4.1.0</version>
</dependency>

My class:

import org.neo4j.graphdb.GraphDatabaseService;

public class Main {
public static void main (String args){
GrahpDatabaseFactory GDbFactory = new GraphDatabaseFactory();
}}

The error: package org.neo4j.graphdb.factory.GraphDatabase does not exists

my tries:
*using DatabaseManagentService (error: cannot find symbol: class DatabaseManagementServiceBuilder) [Cannot find GraphDatabaseFactory]

Any advice is welcomed.

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.