+1  A: 

DrJava is your best bet. It also has an Eclipse plugin to use the interactions pane like GroovyConsole.

Cem Catikkas
+1  A: 

try beanshell. its a scripting wrapper over java. http://www.beanshell.org/

Gowri
+1  A: 

Why not use the GroovyConsole ? Groovy accepts the vast majority of Java syntax

Michael Easter
thanks for the tip. Actually that is what I ended up doing. My first thought was to keep the Groovy code and Java code in seperate editors, but by using the GroovyConsole I was able to show a POJO and and edit it in place to make it a POGO.
codeLes
A: 

One good reason for not using something like the Groovy Console (wonderful though it is) is when you want to test what something would be like in Java, without actually going to the trouble of a boilerplate class and main method to run snippets of code. There are some differences between what Groovy does and what Java does. It'd be nice to have a simple way to test something and know for sure it will work when you put it in Java.

Keegan