Skip to main content
12-Amethyst
August 13, 2024
Question

Thingworx Extension - Create Resource Error

  • August 13, 2024
  • 3 replies
  • 2223 views

I have also run into this issue. I have tried several combinations of Eclipse, JDK and TWX SDKs using ANT with no resolution, including the recommended combination. 

3 replies

Rocko
19-Tanzanite
August 14, 2024

What happens when you click "Browse" right of the Superclass field?

Looks like it can't find the com.thingworx.resources.Resource in its classpath. Make sure the project has thingworx-ext-sdk-9.4.0-b49.jar (or your version) in the build path. (Project>build path>configure>java  build path> libraries>Classpath) Make also sure this is the only jar in your build path containing com.thingworx.resources.Resource so you don't have a collision.

 

12-Amethyst
September 5, 2024

Hi @Rocko,
 
Sorry for the delay. When I click browse there is only one com.thingworx.resources.Resouce. I have tried with various versions of the thingworx sdk with no luck.

mariaSutton_0-1725549615237.png
these are the current jars

mariaSutton_1-1725549805903.png

 

 

17-Peridot
September 8, 2024

@mariaSutton , I think you are very off track with your effort. 
There are several steps which need  to be followed to setup the environment.
When you have followed the steps there are items which are inserted into the Eclipse menus.
When you run the build process which is in one of the menus it will build a zip file. It is important to use this process because it is not simplify a JAR file but a collection of files which describe the extension. 
The direction is to the build using Gradle or Ant.

Let me know where you are and I will try to assist.

 

Pehowe

16-Pearl
September 9, 2024

If you are fine with gradle, the resolution from this article is generally working:

https://www.ptc.com/en/support/article/CS376544

12-Amethyst
September 16, 2024

Hi @smainente,

Do you have a Gradle install guide/tutorial? I have tried to install it via the Eclipse Market place but have been unsuccessful installing the STS specific version indicated in the TWX docs. 

Thanks!

16-Pearl
September 17, 2024

For TWX extensions, I'm using Eclipse IDE for Enterprise Java and Web Developers 2021-09 and the Buildship: Eclipse Plug-ins for Gradle 3.1.5.v20210113-0929 (the one that comes with eclipse, not the STS).

A new version of Eclipse Plug-ins for ThingWorx should be released very soon.

 

17-Peridot
December 2, 2024

Hello @mariaSutton 

It appears that the response from smainente  answers your question.  For the benefit of other Community Members who may have the same question, it would be great if you could designate it as the Accepted Solution.

In the event that this response did not answer your question, please post your current status so that we can continue to support.

Thanks for using the PTC Community!

Regards,

pehowe