ThingWorx Edge Java SDK > Running the SimpleThingClient Application
Running the SimpleThingClient Application
If you have installed Gradle as described in the section, Setting Up to Run Sample Applications, you can run the Simple Thing Client sample application and have it connect to your ThingWorx platform. First, follow the steps below to modify the source file to reference your server address and AppKey.
1. From your ThingWorx platform:
a. Create SimpleThing 1 on your server by importing the entity file entities/ExampleExport.xml, into your server.
b. Either obtain an existing or generate a new AppKey to use with the sample application. You will need it while editing the sample source file.
2. From your IDE, open the sample source file, sample/src/com/thingworx/sdk/simplething/
3. Locate the following line:
4. Edit this line as follows:
a. Change the IP address in this line to the IP address of your server.
b. If you are not using SSL/TLS, change wss: to ws: (at the beginning of the URI).
c. Change the port number in the URI to match the one for accessing your server. For example, if you are running a ThingWorx platform locally without HTTPS, you would use
5. Locate the following line:
6. Replace the AppKey, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, with the one from your server.
7. Save your changes.
8. Run this example, using this command:
gradle SimpleThingClient