To use Groovy from inside jEdit download this
...
http://plugins.jedit.org/plugins/?SuperScript
...
. You'll need a fairly recent jEdit distribution.
Right now BSF isn't yet released with inbuilt Groovy support so you have to add the following code to the startup script in
...