我在用
Ubuntu 12.04
Neo4j - Graph Database Kernel 2.0.0-M04
javac 1.7.0_25
java version "1.7.0_25
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
即使我使用的是 Oracle Java,我也收到了警告:
"WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7."
当我调试utils file
在 neo4j 目录中调试时,我发现了一个带有以下注释的函数:
# check if running JDK 6, warn if not
checkjvmcompatibility() {
$JAVACMD -version 2>&1 | egrep -q "Java HotSpot\\(TM\\) (64-Bit Server|Client) VM"
if [ $? -eq 1 ]
then
echo "WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7."
else
$JAVACMD -version 2>&1 | egrep -q "java version \"1.7"
if [ $? -eq 1 ]
then
echo "WARNING! You are using an unsupported version of the Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7."
fi
fi
}
一些困惑:
comment of function shows that it is checking for java 6 but error message displayed use 'echo' shows that you are not using java run time 7.
那么实际上 neo4j 对 Java 的期望是什么?
我使用的是 Oracle-Java-1.7 ,但不使用 Oracle-Java1.7 仍然给我带来错误。
谢谢阿米特阿加瓦尔