AddClassPath method does not works with scriptlang="groovy"


<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="" scriptlang="groovy">
                addClassPath(new URL("jar:file:D:/encdecjar/common-utilities.jar!/"));
    <export include-original-data="true"></export>

Why is above code not running when scriptlang=“groovy” ?
If I remove scriptlang=“groovy” it works fine.


Hi Abhijeet,

addClassPath is not supported in groovy, it is a beanshell command - it is deprecated in Workfusion, and we don’t recommend using it. Please use groovy.

Follow this guide from our documentation for loading external jars

And this helpful article