0

嗨,我安装了 grails

c:/圣杯

我的Windows 7上的目录

之后,我创建了 grails 网站上提到的 GRAILS_HOME 环境变量

但是现在当我运行这个命令时

grails 与 --intellij 集成

在命令提示符下它会引发错误:

grails 未被识别为内部或外部命令

任何想法我在这里做错了什么

4

1 回答 1

0

我遇到了同样的问题,并按照以下方式摆脱了困境。尽管您已经提到过,但您设置了环境变量。我再次保证:

In environment variables dialogue: (user variables section)
1. Set GRAILS_HOME to your extracted grails version as GRAILS_HOME=D:\GrailsEnvironment\grails-2.1.1
2.  Set JAVA_HOME to your installed jdk version as JAVA_HOME=C:\Program Files\Java\jdk1.7.0_04

In environment variables dialogue: (System variables section)
1. Edit path and add D:\GrailsEnvironment\grails-2.1.1\bin
2.  Edit path and add C:\Program Files\Java\jdk1.7.0_04\bin

If needed reboot your pc again. and in command prompt run 'grails -version' and 'java -version' command to check whether grails and java were perfectly installed.

If error shows then may be your grails package is corrupted, Extract your grails package newly in the specified path again. run the command to check. if necessary reboot and run command.

Thanks
于 2014-06-03T04:47:38.070 回答