'java.lang.NoClassDefFoundError' when deploying a route in Runtime

Problem Description

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


Root Cause

The external library JAR was not packaged when the route was built/published.



  1. Open the route.

  2. Select the Dependencies tab, then select the check box next to the external JAR file.



  3. Rebuild or republish the route.

Version history
Revision #:
4 of 4
Last update:
‎08-16-2019 09:11 AM
Updated by: