01-29-2018 02:19 AM
hi all,
I m trying to use gson in my script snap by importing the package. but its giving me an error. so does snaplogic support external packages in their script snap apart from standard ones like java.util etc.
01-29-2018 02:14 PM
sys.path.append() can be used to import external jars to a script (say Python) that you may have in place.
Steps:
import sys
.
.
sys.path.append(‘/opt/snaplogic/<DIR_FOR_EXT_JARS>/sample.jar’)
.
.
Note: The above method would work only for a “Script” snap based pipeline execution(s) done on Groundplex node(s).
01-29-2018 11:45 PM
would definitely try this thanks
05-23-2019 09:41 AM
Hi ,
Is there an option, so that we can refer the jar from sldb rather than keeping it on the groundplex ?
Thanks!
05-23-2019 10:39 AM
To work with Java (or) Jython based libraries, it is a mandatory requirement for the jar files to be loaded to every Groundplex node (JCC) before referencing them from the Script Snap.