User-defined Java classes can be referenced from scripts by making the JAR file containing the classes an input File parameter of the component (for a Script component, or a Prologue or Epilogue script of any component). The JAR file is automatically added to the class-path of the Script Interpreter, allowing the class to be used. For example, if you have a file Jython: from test import Play p = Play() p.function(args) Dynamic Java: p = new test.Play(); p.function(args); The working directory of the component is also added to the class-path,
so any For example, if you have a file Jython: import play msg = play.abc |