O console Groovy não carrega
I set my system environment
JAVA_HOME
toC:\Program Files\Java\jdk1.8.0_77
andGROOVY_HOME
toC:\Program Files (x86)\Groovy\Groovy-2.4.6\bin
Sua variável GROOVY_HOME
está incorreta. Ele deve apontar para a raiz da instalação do Groovy (que é um backup direto de bin
).
No seu caso, o valor correto é GROOVY_HOME C:\Program Files (x86)\Groovy\Groovy-2.4.6
Você também pode considerar adicionar %GROOVY_HOME%\bin
ao seu caminho de sistema.
Configurando seu ambiente Groovy
Unzip the groovy archive to some logical place on your hard drive, I have mine in
C:\dev\groovy-2.0.5
Set the
GROOVY_HOME
environment variables. On Windows, follow these steps:
- Optionally add a new System variable with the name
GROOVY_HOME
and the value of the directory groovy was installed in (mine isC:\dev\groovy-2.0.5
)- Start a command prompt, and type "set" and hit return to see that your environment variables were set correctly.
Optionally add
%GROOVY_HOME%\bin
to your system pathTry opening
groovyConsole.bat
by double clicking on the icon in the bin directory of the Groovy distribution.
If it doesn't work, open a command prompt, and change to the bin directory and run it from there to see what the error message is.
If it is complaining about not finding parts of Groovy, then setting
GROOVY_HOME
may help
Fonte Tutorial 1 - Primeiros passos
Leitura Adicional
-
Tutorial 1 - Primeiros passos