A route using the cConfig component to load an external library (for example, org.json.jar or any other JAR), runs as expected in Studio, but fails when deployed and run from Runtime, with the following error message:
Caused by: java.lang.NoClassDefFoundError: org/json/JSONObject
The external library JAR was not packaged when the route was built/published.
Open the route.
Select the Dependencies tab, then select the check box next to the external JAR file.
Rebuild or republish the route.