当我运行 start.jar 时,出现以下错误:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/
jetty/start/Main : 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.eclipse.jetty.start.Main. Program will exit.
根据 Jetty 文档 ( http://www.eclipse.org/jetty/documentation/current/quickstart-running-jetty.html ),我需要做的就是下载 zip、解压缩并运行 start.jar。谷歌似乎没有向我提供任何有类似问题的人。
谢谢,山姆