The answer reproduced from: http://stackoverflow.com/questions/24577480/org-codehaus-groovy-grails-cli-support-grailsstarter-not-found-error
Recently upgraded the Ubuntu, but then when run grails projects: “Could not find or load a main class org. Codehaus. Groovy. Grails. Cli. Support. GrailsStarter” error, Google for a long time found was solved by a strange answer:
Just go to the Grails /bin directory and run the Grails commands from the command line. I don’t know why.