技术文章 - CS376544

ThingWorx Eclipse 插件:在 Eclipse 2022+ 上创建资源时出现错误“请选择有效的超类 - 类不是 com.thingworx.resources.Resource 的实例”

已修改: 06-Jan-2025   


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

适用于

  • ThingWorx Platform 9.1 to 9.4
  • ThingWorx Eclipse Plugin 9.0.1
  • Eclipse 2022 and later
  • Eclipse 2021 and JDK 11

说明

  • 使用 ThingWorx Eclipse 插件在 Eclipse 中创建 ThingWorx 资源时,“新建类”对话框中显示错误:
    Please choose a valid Superclass - Class is not instance of: com.thingworx.resources.Resource
  • Eclipse 2022 及以上版本中已报告 Gradle 项目配置存在问题
  • ThingWorx Eclipse 插件9.0.1 与 Eclipse 的最新版本(2022+)无法完全兼容
  • 在 Eclipse 中创建Gradle类型的 Thingworx 项目会返回以下错误:
     The supplied phased action failed with an exception. A problem occurred configuring root project '<project_name>'. A problem occurred evaluating root project '<project_name>'. Could not find method compile() for arguments [directory 'twx-lib'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
这是文章 376544 的 PDF 版本,可能已过期。最新版本 CS376544