Skip to main content
12-Amethyst
Aug 13, 2024 6:57 PM UTC
Question

Thingworx Extension - Create Resource Error

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. 

10 replies

Rocko
19-Tanzanite
Aug 14, 2024 8:39 AM UTC

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.

 

Translate
12-Amethyst
Sep 5, 2024 3:24 PM UTC

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

 

 

Translate
17-Peridot
Sep 8, 2024 11:16 PM UTC

@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

Translate
16-Pearl
Sep 9, 2024 8:54 AM UTC

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

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

Translate
12-Amethyst
Sep 16, 2024 3:08 PM UTC

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!

Translate
16-Pearl
Sep 17, 2024 7:53 AM UTC

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.

 

Translate
17-Peridot
Dec 2, 2024 10:50 PM UTC

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

Translate