org.codehaus.groovy.grails.cli.support.GrailsStarter not found error

15,704

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.

  1. Go to grails/bin folder $cd /Applications/grails/grails-2.3.11/bin
  2. Then run grails from command line $./grails

When you run this command, necessary files for your grails will be downloaded.

  1. Close your terminal
  2. 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.

Share:
15,704
confile
Author by

confile

Java, GWT, JavaScript, Grails, Groovy, Swift, Objective-C, iOS

Updated on June 17, 2022

Comments

  • confile
    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