技术文章 - CS374929

在 Windchill 12.1 和 13.0 版本中重新编译 GWT 模块时,出现 java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler 错误。

已修改: 31-Dec-2025   


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

适用于

  • Windchill PDMLink 12.1 to 13.0

说明

  • 重新编译 GWT 模块失败,出现java.lang.ClassNotFoundException 异常:com.google.gwt.dev.Compiler
  • 重新编译 GWT 模块失败,出现java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler 错误。需要提供 gwt-dev.jar 文件。
  • 执行命令ant -f gwt.xml时出现异常java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler
  • 错误:
ava] CompileCommand: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith
[java] CompileCommand: exclude org/eclipse/jdt/internal/compiler/lookup/ParameterizedTypeBinding.<init>
[java] CompileCommand: exclude org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding.<init>
[java] Error: Could not find or load main class com.google.gwt.dev.Compiler
[java] Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler
!+! ERROR OCCURRED @ E:\ptc\Windchill_12.1.1\Windchill\bin\gwt.xml:50: !!!
********************************************************************************
!+! FINISHED @ Thu Aug 18 12:23:15 CEST 2022
!+! Log: E:\ptc\Windchill_12.1.1\Windchill\buildlogs\0006-gwt.log
********************************************************************************

BUILD FAILED
E:\ptc\Windchill_12.1.1\Windchill\bin\gwt.xml:50: The following error occurred while executing this line:
E:\ptc\Windchill_12.1.1\Windchill\bin\gwt.xml:54: The following error occurred while executing this line:
E:\ptc\Windchill_12.1.1\Windchill\bin\gwt.xml:85: The following error occurred while executing this line:
E:\ptc\Windchill_12.1.1\Windchill\bin\gwt.xml:174: Java returned: 1


这是文章 374929 的 PDF 版本,可能已过期。最新版本 CS374929