我尝试建立一个非常简单的 neo4j db 来练习:
public static void main(String[] args) {
Map<String, String> config = new HashMap<String, String>();
config.put( "neostore.nodestore.db.mapped_memory", "10M" );
config.put( "string_block_size", "60" );
config.put( "array_block_size", "300" );
GraphDatabaseService graphDb = new GraphDatabaseFactory()
.newEmbeddedDatabaseBuilder( "db" )
.setConfig( config )
.newGraphDatabase();
ExecutionEngine engine = new ExecutionEngine(graphDb, StringLogger.DEV_NULL);
}
执行时出现以下异常:线程“main”中的异常 java.lang.NoClassDefFoundError: scala/Function0
你知道如何让它工作吗?