Grails 命令未启动
Grails command not starting
当我在命令行上 运行 grails
时,我得到
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
- 我已将
JAVA_HOME
设置为 /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home
java -version
returns:
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
grails版本是2.4.3
我卡在这一点上了。该错误消息根本没有帮助。如何解决这个问题?
运行
解决了
cd /System/Library/Frameworks/JavaVM.framework/Versions
rm CurrentJDK
ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents CurrentJDK
在终端中。
当我在命令行上 运行 grails
时,我得到
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
- 我已将
JAVA_HOME
设置为/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home
java -version
returns:
java version "1.7.0_75" Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
grails版本是
2.4.3
我卡在这一点上了。该错误消息根本没有帮助。如何解决这个问题?
运行
解决了cd /System/Library/Frameworks/JavaVM.framework/Versions
rm CurrentJDK
ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents CurrentJDK
在终端中。