0

so i got this error trying to use neo4j embedded:

Error:(3, 31) java: cannot access org.neo4j.configuration.GraphDatabaseSettings
  bad class file: /C:/Users/stepa/.m2/repository/org/neo4j/neo4j-configuration/4.0.2/neo4j-configuration-4.0.2.jar!/org/neo4j/configuration/GraphDatabaseSettings.class
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

I tried to delete the file, re import, with maven, even downgrading the version of maven dependency. Has anyone encountered this behavior? thanks for help :)

Nikolai Shevchenko
  • 7,083
  • 8
  • 33
  • 42
stepankon
  • 3
  • 4
  • 2
    Upgrade to Java 11 (class version 55). Or downgrade from the latest neo4j to a version that still supports Java 8 (class version 52). Java 8 has been eol (from Oracle) for quite a while. The neo4j documentation [here](https://neo4j.com/docs/operations-manual/current/installation/requirements/#deployment-requirements-java) lists Java 11 as a requirement. – Elliott Frisch Apr 29 '20 at 18:38
  • oh... well thanks, you saved me quite a lot of time, I totally forgot that could be an issue :Dd – stepankon Apr 29 '20 at 18:48
  • https://stackoverflow.com/a/28180983/6821936 try this one – Uday Chauhan Apr 29 '20 at 19:46

1 Answers1

0

It was the java version. By Elliott Frisch; answered in the comments..

stepankon
  • 3
  • 4