cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Error while adding New Resource in Thingworx Extension

bmdeshmukh18
10-Marble

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

6 REPLIES 6

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

 

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.

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

 

I am using Extension-SDK-9-1-0.

slangley
23-Emerald II
(To:bmdeshmukh18)

Hi @bmdeshmukh18

 

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

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

Announcements


Top Tags