There is no need of totalPath anymore. You can use externalJars directly. Also kindly rename that as totalClassPath.