我正在尝试将我的 java 应用程序作为 Windows 服务运行。我按照这里所说的做了:http: //web.archive.org/web/20090228071059/http ://blog.platinumsolutions.com/node/234
和http://commons.apache.org/daemon/procrun.html
我得到了这个例外:
2013-02-04 14:52:25 Commons Daemon procrun stderr initialized
java.lang.UnsupportedClassVersionError: serviceWrapper : 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)
Exception in thread "main"