Error: Could not find or load main class org.codehaus.groovy.tools.GroovyStarter (groovy-3.0.7)

Viewed 2995

I am trying to install Groovy on Windows 10 manually. And I keep receiving the following error. Error: Could not find or load main class org.codehaus.groovy.tools.GroovyStarter Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.tools.GroovyStarter

What I did is:

C:\WINDOWS\system32>Setx JAVA_HOME "C:\Program Files\Java\jdk-13.0.2"

SUCCESS: Specified value was saved.

C:\WINDOWS\system32>echo %java_home%
C:\Program Files\Java\jdk-13.0.2

C:\WINDOWS\system32>Md "C:\Program Files (x86)\Groovy"

C:\WINDOWS\system32>move "C:\temp\groovy-3.0.7" "C:\Program Files (x86)\Groovy"

C:\WINDOWS\system32>Setx GROOVY_HOME "C:\Program Files (x86)\Groovy\groovy-3.0.7\src"

C:\WINDOWS\system32>set PATH="C:\Program Files (x86)\Groovy\groovy-3.0.7\src\bin";%PATH%

And when I type "groovysh"

C:\WINDOWS\system32>groovysh
Error: Could not find or load main class org.codehaus.groovy.tools.GroovyStarter
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.tools.GroovyStarter

I am not sure what I have missed.

It would be greatly appreciated if anyone points out my mistake.

Thanks.

0 Answers
Related