In case you happen to have introduced a dependency on Scala 2.11.x, try changing it to 2.10.x (2.10.5 is currently the latest version) - that worked for me.
It turns out[1] Cypher depends on Scala. Many thanks to the contributors here[2], btw. 1 https://github.com/neo4j/neo4j/search?utf8=✓&q=scala 2 http://stackoverflow.com/questions/23997511/using-cypher-from-scala-in-embedded-databases-fails On Friday, January 23, 2015 at 2:59:13 PM UTC, cui r wrote: > > Hi, > > I have some code that works fine prior to 2.2.0 M2, but failed with the > following error: > > Exception in thread "main" java.lang.UnsupportedOperationException: No > query engine installed. > at > org.neo4j.kernel.impl.query.NoQueryEngine.noQueryEngine(NoQueryEngine.java:56) > at > org.neo4j.kernel.impl.query.NoQueryEngine.executeQuery(NoQueryEngine.java:33) > at > org.neo4j.kernel.InternalAbstractGraphDatabase.execute(InternalAbstractGraphDatabase.java:935) > at > org.neo4j.kernel.InternalAbstractGraphDatabase.execute(InternalAbstractGraphDatabase.java:926) > > The code is the following: > > graphDb = new GraphDatabaseFactory() > .newEmbeddedDatabaseBuilder(neo4jDbLocation) > .loadPropertiesFromFile(neo4jConfigFile) > .newGraphDatabase(); > String cypher = "CREATE CONSTRAINT ON (s:" + nodeLabel + ") ASSERT s." + > nodeKey + " IS UNIQUE"; > Result result = graphDb.execute(cypher); > > (minus the transaction, db close code). > It failed at the last line. > > My maven has > <dependency> > <groupId>org.neo4j</groupId> > <artifactId>neo4j</artifactId> > <version>2.2.0-M02</version> > </dependency> > > > Any help is appreciated. Google doesn't help at all with this error, so I > guess this is something new in 2.2.0? > > Thanks, > Rick > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.