windows不能在本地计算机启动Apache Tomcat 7.
将tomcat7做成服务
命令提示符下输入:service.bat install
在服务中加入了tomcat服务,点击启动报错:windows不能在本地计算机启动Apache Tomcat.有关更多信息,查阅系统事件日志.如果这是非Microsoft服务,请与服务厂商联系,并参考特定服务错误代码0
tomcat日志:
[2012-04-24 17:06:47] [info] Commons Daemon procrun (1.0.10.0 64-bit) started
[2012-04-24 17:06:47] [info] Service Tomcat7 name Apache Tomcat Tomcat7
[2012-04-24 17:06:48] [info] Service 'Tomcat7' installed
[2012-04-24 17:06:48] [info] Commons Daemon procrun finished
[2012-04-24 17:06:48] [info] Commons Daemon procrun (1.0.10.0 64-bit) started
[2012-04-24 17:06:48] [info] Updating service...
[2012-04-24 17:06:49] [info] Service 'Tomcat7' updated
[2012-04-24 17:06:49] [info] Update service finished.
[2012-04-24 17:06:49] [info] Commons Daemon procrun finished
[2012-04-24 17:06:49] [info] Commons Daemon procrun (1.0.10.0 64-bit) started
[2012-04-24 17:06:49] [info] Updating service...
[2012-04-24 17:06:49] [info] Service 'Tomcat7' updated
[2012-04-24 17:06:49] [info] Update service finished.
[2012-04-24 17:06:49] [info] Commons Daemon procrun finished
[2012-04-24 17:08:53] [info] Commons Daemon procrun (1.0.10.0 64-bit) started
[2012-04-24 17:08:53] [info] Running 'Tomcat7' Service...
[2012-04-24 17:08:53] [info] Starting service...
[2012-04-24 17:08:54] [error] %1 不是有效的 Win32 应用程序。
[2012-04-24 17:08:54] [error] Failed creating java D:\Program Files\Java\jdk1.6.0_26\jre\bin\server\jvm.dll
[2012-04-24 17:08:54] [error] %1 不是有效的 Win32 应用程序。
[2012-04-24 17:08:54] [error] ServiceStart returned 1
[2012-04-24 17:08:54] [error] %1 不是有效的 Win32 应用程序。
[2012-04-24 17:08:54] [info] Run service finished.
[2012-04-24 17:08:54] [info] Commons Daemon procrun finished
这是什么意思啊? 什么叫 不是有效的WIN32应用 程序 ??? 我下的包 都是64位的啊。。
------解决方案--------------------哦. 难道需要jre也是64位的? 你的jdk是64的吗?