diff --git a/node/capsule/src/main/java/CordaCaplet.java b/node/capsule/src/main/java/CordaCaplet.java index 46450fcc6e..b6b2007577 100644 --- a/node/capsule/src/main/java/CordaCaplet.java +++ b/node/capsule/src/main/java/CordaCaplet.java @@ -112,6 +112,9 @@ public class CordaCaplet extends Capsule { // If it fails, just return the existing class path. The main Corda jar will detect the error and fail gracefully. return cp; } + + // Add additional directories of JARs to the classpath (at the end), e.g., for JDBC drivers. + augmentClasspath((List) cp, new File(baseDir, "drivers")); try { List jarDirs = nodeConfig.getStringList("jarDirs"); log(LOG_VERBOSE, "Configured JAR directories = " + jarDirs);