0

在迁移到 Mint 13 之前,我已经在我的 Ubuntu 12.04 上成功使用了 Neo4j 数据库。所以,我安装了数据库(如此所述)并尝试启动 neo4j-service:

sudo service neo4j-service start

每次我尝试开始时,我都会看到:

WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
WARNING! You are using an unsupported Java runtime. Please use JDK 6.
Starting Neo4j Server...Exception in thread "main" java.lang.NoClassDefFoundError: org/neo4j/server/storemigration/PreStartupStoreUpgrader
Caused by: java.lang.ClassNotFoundException: org.neo4j.server.storemigration.PreStartupStoreUpgrader
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.neo4j.server.storemigration.PreStartupStoreUpgrader. Program will exit.

以下是java -version命令的结果:

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

我运行 Linux Mint 13 Cinnamon x86_64。正如我所说,在具有相同版本的 OpenJDK 的 Ubuntu 12.04 x86_64 上一切正常。

我应该怎么办?谢谢你。

4

0 回答 0