JSR 223: Scripting for the JavaTM Platform
http://jcp.org/en/jsr/detail?id=223
Rhino: JavaScript for Java
http://www.mozilla.org/rhino/