Skip to main content
1-Visitor
Jul 2, 2021 6:03 PM UTC
Solved

Error while adding New Resource in Thingworx Extension

Hi All,

 

I am trying to add a new Resource when creating a Extension in Eclipse.

But I am getting an error as " Please choose a valid Superclass - Class is not instance of: com.thingworx.resources.Resource". Attached the screenshot with the post.

 

Any idea, why this error is thrown.

 

NOTE: I have included the SDK zip while creating the project itself.

In addition to above, I also tried after adding few external JAR files to the project library.

 

Has anyone faced this error.

 

Thanks in Advance.

Bhushan

1-Visitor
Jul 20, 2021 12:19 PM UTC

Yes. I too think it might be due to some compatibility issue.

 

When I used lower version SDK, I did not see this error.

With / without the external libraries, it was working okay.

 

Regards,

Bhushan

6 replies

5-Regular Member
Jul 5, 2021 7:03 AM UTC

Seems like either eclipse is not able to recognize the superclass or it is not available. Can you click on the browse button beside superclass and do you see this class coming from thingworx-ext-sdk-version.jar, something like this.

 

mnarang_0-1625468572485.png

 

Translate
1-Visitor
Jul 5, 2021 9:58 AM UTC

Yes I see the class coming in pop up when I click Browse, same as you have posted.

 

Also where can I download older version of Thingworx Extension SDK /Eclipse Plugin.

Translate
5-Regular Member
Jul 6, 2021 9:51 AM UTC

May I know your version of the extension SDK? On support.ptc.com it is available till 8.5. you can check it here:

 

mnarang_0-1625565083609.png

 

Translate
Support
Jul 15, 2021 7:31 PM UTC

Hi @bmdeshmukh18_451588

 

Did you try it with just the SDK--without the external libraries?  There could be a compatibility issue. 

 

Which version of ThingWorx are you developing your extension for?  

 

Regards.

 

--Sharon

Translate
1-Visitor
Jul 20, 2021 12:19 PM UTC

Yes. I too think it might be due to some compatibility issue.

 

When I used lower version SDK, I did not see this error.

With / without the external libraries, it was working okay.

 

Regards,

Bhushan

Translate