Skip to main content
1-Visitor
July 2, 2021
Solved

Error while adding New Resource in Thingworx Extension

  • July 2, 2021
  • 2 replies
  • 3153 views

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

Best answer by bmdeshmukh18_451588

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

2 replies

5-Regular Member
July 5, 2021

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

 

1-Visitor
July 5, 2021

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.

5-Regular Member
July 6, 2021

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

 

Community Manager
July 15, 2021

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

1-Visitor
July 20, 2021

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