Groovy Installation -


i tried install groovy in windows 7. downloaded archive groovy site. unzip it. add groovy_home path environment. add bin path environment. after rebooted windows. when try run groovy cmd error:

error: not find or load main class org.codehaus.groovy.tools.groovystarter

you may have directories of other groovy versions in path. if have installed groovy before (may years ago - doesn't matter), check environment variables, path, other groovy distributions.

the file %groovy_home%/conf/groovy-starter.conf gives more hints of happens while starting binaries. having in mind, cause of problem may usage of wrong binaries. may result in expectation of other classes or class names provided date groovy_home directories - yielding error.

check paths twice this.

update:

i accidentally ran problem because messing around groovy-versions (just told not ;)). here easy hint how find out if paths correct (for windows).

  1. open command-shell cmd.
  2. type in set debug=true activate debug-statements.
  3. type in groovysh (requesting interactive groovy-shell).
  4. have @ last lines "java.exe" called. there long statement containing resolved path dependencies. check if these contain correct distribution, instance, "groovy-2.4.4.jar".

cheers


Comments