Grails 命令未启动

Grails command not starting

当我在命令行上 运行 grails 时,我得到

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"

我卡在这一点上了。该错误消息根本没有帮助。如何解决这个问题?

运行

解决了
cd /System/Library/Frameworks/JavaVM.framework/Versions 
rm CurrentJDK 
ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents CurrentJDK

在终端中。