Skip to main content
10-Marble
Feb 19, 2023 2:17 PM UTC
Solved

Thingworx java extension

Below line of  code has been written in thingworx java extension in eclipse
InputStream in = TestExcel_TS.class.getResourceAsStream("/TestExcel.xlsx");

 

where can I find TestExcel.xlsx in Thinghworx server.

 

Please help me over here.

 

17-Peridot
Feb 20, 2023 5:43 AM UTC

In Windows and installed with Thingworx Installer,

  • C:\Program Files (x86)\ThingWorxFoundation\ThingworxStorage
  • C:\Program Files (x86)\ThingWorxFoundation\tomcat\current\webapps\Thingworx

6 replies

17-Peridot
Feb 19, 2023 4:53 PM UTC

give the absolute path of /TestExcel.xlsx

Ex. C:\Text.xlsx

Translate
Test_user10-MarbleAuthor
10-Marble
Feb 20, 2023 3:24 AM UTC

Okay.

The file TestExcel.xlsx has been placed somwhere in the thingworx server.how to check where it is placed in Thingworx?

 

Translate
Test_user10-MarbleAuthor
10-Marble
Feb 21, 2023 8:02 AM UTC

Thank you.

If I have to make changes in TestExcel.xlsx file for example: IfI want to add some text at line number 1,is it mandatory to change at both the places?

  • \ThingworxStorage
  • \tomcat\apache-tomcat-9.0.62\webapps\Thingworx
Translate