我已经使用Java 11.0.2安装了一个旧项目。当我尝试将tomcat 9作为服务启动时,出现以下错误。
[2019-05-03 05:01:36] [info] [13044] Starting service...
[2019-05-03 05:01:36] [error] [ 9764] CreateJavaVM Failed
[2019-05-03 05:01:36] [error] [ 9764] The system cannot find the file
specified.
[2019-05-03 05:01:36] [error] [13044] Failed to start Java
[2019-05-03 05:01:36] [error] [13044] ServiceStart returned 4
[2019-05-03 05:01:36] [info] [13152] Run service finished.
[2019-05-03 05:01:36] [info] [13152] Commons Daemon procrun finished
我验证了jvm.dll路径。这是正确的。以下是用于启动tomcat服务的命令
C:\Java11\bin\tomcat9.exe //IS//TOMCATSERVER --StartClass
org.apache.catalina.startup.Bootstrap --StopClass
org.apache.catalina.startup.Bootstrap --StartParams start --StopParams
stop
感谢您的帮助。
预先感谢, AKJ。