org.codehaus.groovy.grails.cli.support.GrailsStarter not found error
Solution 1
I found the solution. If you go to the grails/bin folder and run grails from the command line you can close the console afterwards and when you open the console again the problem will be fixed.
Solution 2
Solution:
Make sure you have environment variable set correctly.
- Go to grails/bin folder
$cd /Applications/grails/grails-2.3.11/bin
- Then run grails from command line
$./grails
When you run this command, necessary files for your grails will be downloaded.
- Close your terminal
- Now check your grails version from terminal
$grails -version
There won't be any errors.
Solution 3
You are probably still running grails 2.3.10.
You have to update GRAILS_HOME
and you also have to update your path to use the new grails version, i.e. your path must include $GRAILS_HOME/bin
.
Solution 4
The question and answers seems to be out-of-date. I have encountered the same problem but it has been fixed by replying the discussion here. The easiest way to resolve the issue is to run the following command:
chmod +x .sdkman/bin/sdkman-init.sh
which helped me out.
confile
Java, GWT, JavaScript, Grails, Groovy, Swift, Objective-C, iOS
Updated on June 17, 2022Comments
-
confile almost 2 years
After updating from Grails 2.3.10 to 2.3.11 and updating the path variable to
export GRAILS_HOME=/Applications/grails/grails-2.3.11
When I run: grails I get the following error:
Error: Main class org.codehaus.groovy.grails.cli.support.GrailsStarter could not be found