WINDOWS下启动maven nexus的时候报 The nexus service was launched, but failed to s ...

查看日志\nexus-2.1.1-bundle\nexus-2.1.1\logs
rapper  | JVM exited while loading the application.
wrapper  | Reloading Wrapper configuration...
wrapper  | Launching a JVM...
jvm 2    | java .lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher (Unsupported major.minor version 50.0)
jvm 2    |  at java.lang.ClassLoader.defineClass0(Native Method)
jvm 2    |  at java.lang.ClassLoader.defineClass(Unknown Source)
jvm 2    |  at java.security.SecureClassLoader.defineClass(Unknown Source)
jvm 2    |  at java.net.URLClassLoader.defineClass(Unknown Source)
jvm 2    |  at java.net.URLClassLoader.access$100(Unknown Source)
jvm 2    |  at java.net.URLClassLoader$1.run(Unknown Source)
jvm 2    |  at java.security.AccessController.doPrivileged(Native Method)
jvm 2    |  at java.net.URLClassLoader.findClass(Unknown Source)
jvm 2    |  at java.lang.ClassLoader.loadClass(Unknown Source)
jvm 2    |  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
jvm 2    |  at java.lang.ClassLoader.loadClass(Unknown Source)
jvm 2    |  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
jvm 2    | Exception in thread "main"
 
看日志大概就是找不着JAVA虚拟机,或者版本不一致,通过修改nexus-2.1.1\bin\jsw\conf\wrapper.conf文件中的
wrapper.java.command=D:\Program Files\Java\jdk1.7.0_05\bin\java.exe
问题解决!!

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