log报错:
[2008-12-10 17:22:38] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre6\bin\server\jvm.dll
[2008-12-10 17:22:38] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-12-10 17:22:38] [info] Run service finished.
[2008-12-10 17:22:38] [info] Procrun finished.
[2008-12-10 17:22:54] [info] Procrun (2.0.4.0) started
[2008-12-10 17:22:54] [info] Running Service...
[2008-12-10 17:22:54] [info] Starting service...
[2008-12-10 17:22:38] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre6\bin\server\jvm.dll
[2008-12-10 17:22:38] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-12-10 17:22:38] [info] Run service finished.
[2008-12-10 17:22:38] [info] Procrun finished.
[2008-12-10 17:22:54] [info] Procrun (2.0.4.0) started
[2008-12-10 17:22:54] [info] Running Service...
[2008-12-10 17:22:54] [info] Starting service...
[2008-12-10 17:22:54] [174 javajni.c] [error] %1 不是有效的 Win32 应用程序。
解决方法
这个是Sun的一个bug。
修改注册表键值:
HKLM\Software\JavaSoft\Java Runtime Engine\1.6\RuntimeLib
旧的是:
(假如JAVA_HOME为C:\Program Files\Java)
C:\Program Files\Java\jre6\bin\client\jvm.dll
更新值为:
C:\Program Files\Java\jre6\bin\server\jvm.dll
然后设置一下: