1.4 Using groovyConsole
Groovy has those of us who prefer to use a GUI
covered—simply double-click groovyConsole.bat in
Windows Explorer (look for it in the %GROOVY_HOME%\bin directory).
Users of Unix-like systems can double-click the groovyConsole
executable script using their favorite file/directory-browsing tool. We can also type groovyConsole on the command line to bring up the console GUI tool.
A console GUI will pop up, as shown in the following figure.
Let’s type some Groovy code in the top window of the console. When ready to execute the code, press Ctrl+R or Ctrl+Enter on a Windows system, or Command+R or Command+Enter on a Mac system.
We can also click the appropriate toolbar button to execute the script. The
groovyConsole ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access