Details
Description
I installed Groovy-1.8.4 using the window installer. I then launched the Groovy Console and typed in groovy -version, groovy -v, and groovysh and each time I get an exception error. I have my JAVA_HOME variable set, I have my GROOVY_HOME variable set, but the console cannot move past this issue. I can execute Math(16).sqrt, and println commands, etc.
Can someone tell me what to do to make sure that my installation of Groovy is working correctly? I am following "Progamming Groovy" book published by the Pragmatic Programmers.
Thanks
The Groovy Console (groovyConsole.bat) only understands Groovy syntax. The commands you referenced as a problem need to be run at the Windows command prompt.
c:\Java\groovy-1.8.4>bin\groovy -version Groovy Version: 1.8.4 JVM: 1.6.0_27 c:\Java\groovy-1.8.4>bin\groovy -v Groovy Version: 1.8.4 JVM: 1.6.0_27 c:\Java\groovy-1.8.4>bin\groovysh Groovy Shell (1.8.4, JVM: 1.6.0_27) Type 'help' or '\h' for help. ------------------------------------------ groovy:000> exit c:\Java\groovy-1.8.4>