2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018

12/03/2007: Super Simple Embedded Groovy

Here is the simplest possible Java program that runs a Groovy Script (as far as I know).
package affy.groovy.driver;

import groovy.lang.GroovyShell;

public class GroovyDriver {
 public static void main(String[] args) {
  new GroovyShell().evaluate("println('Hello World');");
 }
}
You'll need three jar files to make this program compile and execute:
  groovy-1.0.jar
  asm-2.2.jar
  antlr-2.7.5.jar


subscribe via RSS