window下启动nexus出错Unsupported major.minor version 51

window下启动nexus报错:

jvm 1    | java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 1    | 	at java.lang.ClassLoader.defineClass1(Native Method)
jvm 1    | 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 1    | 	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 1    | 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 1    | 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 1    | 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 1    | 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 1    | 	at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 1    | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 1    | 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 1    | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 1    | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher.  Program will exit.
jvm 1    | Exception in thread "main"

解决办法:

修改nexus-2.9.1-02\bin\jsw\conf\wrapper.conf文件中的wrapper.java.command=D:\Program Files\Java\jdk1.7.0_05\bin\java.exe

你可能感兴趣的:(maven,nexus)