我一直试图在Windows 7 64bit上安装apache cassandra,我遵循了planetcassandra虚拟培训的视频教程。当我尝试在终端上执行时 操作中心打开的 nodetool status 会给我以下错误:
C:\Program Files\DataStax Community\apache-cassandra\bin>nodetool status
Starting NodeTool
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/ca
ssandra/tools/NodeCmd : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.apache.cassandra.tools.NodeCmd. Program will exit.
可能是什么问题?是不是我在opscenter中看不到任何活动节点? 提前谢谢
答案 0 :(得分:0)
java -version
javac -version
两个版本应该相同。