DrJava is your best bet. It also has an Eclipse plugin to use the interactions pane like GroovyConsole.
Cem Catikkas
2008-08-27 15:12:42
DrJava is your best bet. It also has an Eclipse plugin to use the interactions pane like GroovyConsole.
try beanshell. its a scripting wrapper over java. http://www.beanshell.org/
Why not use the GroovyConsole ? Groovy accepts the vast majority of Java syntax
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.