Article - CS376544

ThingWorx Eclipse Plugin: Error "Please choose a valid Superclass - Class is not instance of: com.thingworx.resources.Resource" while creating resource on Eclipse 2022+

Modified: 06-Jan-2025   


Applies To

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

Description

  • Error displayed in New Class dialog when creating a ThingWorx Resource in Eclipse using the ThingWorx Eclipse plugin:
    Please choose a valid Superclass - Class is not instance of: com.thingworx.resources.Resource
  • Issue has been reported with Eclipse version 2022 and above for Gradle project configurations
  • ThingWorx Eclipse Plugin 9.0.1 is not fully functional with recent versions of Eclipse (2022+)
  • Creating a Thingworx project of type Gradle returns the following error in Eclipse:
    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.
This is a printer-friendly version of Article 376544 and may be out of date. For the latest version click CS376544