title: What fancy ways are there now to support scripting in java?
body: <p>I have a small program where the user can enter a snippet of "real" java code in a text area, and then execute the code in order to perform some simple system tests. This program was made ages ago, and now I am curious if there are some new fancy ways to utilize the java platform in order to achieve the same thing (by for instance having the user entering Groovy in the text area, or perhaps supporting several script languages).
  I got curious when I read about java 7 having support for dynamically typed scripts in its virtual machine.</p>