技术文章 - CS311253

在 Windchill 中无法启动方法服务器,并出现错误“系统找不到指定的 (Java) 路径”

已修改: 12-Sep-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Windchill PDMLink 11.0 to 13.0

说明

  • 日志中配置错误后 Windows 服务无法启动:
Apache Commons Daemon procrun (1.3.4.0 64-bit) started.
Running Service 'WindchillPDM'...
Starting service...
Invalid RuntimeLib specified '..\Windchill\opt\ntservice\${env.JAVA_HOME}\bin\server\jvm.dll'
The system cannot find the path specified.
Failed to load JVM DLL '..\Windchill\opt\ntservice\${env.JAVA_HOME}\bin\server\jvm.dll', home '..\Windchill\opt\ntservice\${env.JAVA_HOME}'.
The system cannot find the path specified.
Failed creating Java '..\Windchill\opt\ntservice\${env.JAVA_HOME}\bin\server\jvm.dll'.
The system cannot find the path specified.
ServiceStart returned 1.
The system cannot find the path specified.
Run service finished.
Apache Commons Daemon procrun finished.
  • 尝试启动 Windchill 服务导致“功能不正确”错误
  • 从 bin 目录中的 shell 运行“windchill.exe”返回“系统找不到指定的路径”
  • 无法使用命令Windchill startWindchill shell启动方法服务器,或无法启动作为Windows 服务安装的 Windchill
 The system cannot find the (Java) path specified.
  • Windows 控制台上观察到以下错误
Windows could not start on local Computer.For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor,and refer to service-specific error code1.
  • 无法执行 xconfmanager 命令
  • 无法使用 Windchill 服务启动 Windchill,并且 Windchill shell 出现以下错误:

  • 在 </WT_HOME>/logs 位置下的commons-daemon日志中观察到以下错误:
 [YYYY-MM-DD HH:MM:SS] [info]  [ 8492] Commons Daemon procrun (1.0.15.0 64-bit) started
[YYYY-MM-DD HH:MM:SS] [info]  [ 8492] Running 'Windchill' Service...
[YYYY-MM-DD HH:MM:SS] [info]  [ 4840] Starting service...
[YYYY-MM-DD HH:MM:SS] [error] [ 4840] Failed creating java D:\ptc\Windchill_11.1\Windchill\opt\ntservice\${env.JAVA_HOME}\jre\bin\server\jvm.dll
[YYYY-MM-DD HH:MM:SS] [error] [ 4840] The system cannot find the path specified.
[YYYY-MM-DD HH:MM:SS] [error] [ 4840] ServiceStart returned 1
[YYYY-MM-DD HH:MM:SS] [error] [ 4840] The system cannot find the path specified.
[YYYY-MM-DD HH:MM:SS] [info]  [ 8492] Run service finished.
[YYYY-MM-DD HH:MM:SS] [info]  [ 8492] Commons Daemon procrun finished
这是文章 311253 的 PDF 版本,可能已过期。最新版本 CS311253