Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


To make this example work, if you're running Groovy 1.5.x, add groovy-engine.jar from to your CLASSPATH and run this program using Java 6. But since Groovy 1.6, Groovy already contains the groovy scripting engine compliant with JSR-223.

This next example illustrates calling an invokable function: