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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Thingworx Extension - Create Resource Error

mariaSutton
11-Garnet

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. 

9 REPLIES 9

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.

 

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

 

 

@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

Hi @PEHOWE ,
The issue is when creating a Thingworx Resource Entity using the Thingworx Eclipse Plug-in. 

I have created a Thingworx project with the plug-in, chosen Ant build and have included the TWX SDK. 

Then when using the Thingworx Source from the Eclipse plug-in to create the Thingworx entity Resource. The plug-in wizard displays an error preventing the Resource type entity from being created:

mariaSutton_0-1726498589399.png

I hope this clarifies the issue I am having. Thank you

To me, your build path looks fine.

When you click Browse, the needed class appears in the list, so it is available.

Two things you can check, otherwise I don't know:

-Does the version of your eclipse plugin match the TWX version?

-Project>Properties>ThingWorx Extension>SDK location: Does it point to the correct SDK?

Hi @Rocko,

- I confirmed the eclipse plugin does match the TWX version

- The Project>Properties>ThingWorx Extension>SDK location is pointing to the intended SDK. 

I am unsuccessful using the latest versions of TWX SDK, TWX Eclipse Plug-in, and Eclipse IDE. The only way I have been able to successfully create a TWX Resource Entity is by using the following combination:

  • Eclipse 2019-12 (4.14.0) 
  • JAVA - jdk-11.0.16 

  • Thingworx 9.1 SDK (PTC Software download page does not provide a version lower before  9.3.0 so need to open a PTC to request this version)

 

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

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

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!

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.

 

Announcements


Top Tags