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

grails不被识别为内部或外部命令,grails,Grails,嗨,我在安装了grails c:/grails 我的windows 7上的目录 之后,我创建了GRAILS_HOME环境变量,如GRAILS网站上所述 但是现在当我运行这个命令时 grails与--intellij集成 在命令提示下,它会抛出一个错误: grails不被识别为内部或外部命令 有没有想过我在这里做错了什么我也遇到了同样的问题,为了摆脱它,我做了如下的事情。 虽然您已经提到了这一点,但是您设置了环境变量。我再次保证: In environment variables dialogue

嗨,我在安装了grails

c:/grails

我的windows 7上的目录

之后,我创建了GRAILS_HOME环境变量,如GRAILS网站上所述

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

grails与--intellij集成

在命令提示下,它会抛出一个错误:

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


有没有想过我在这里做错了什么

我也遇到了同样的问题,为了摆脱它,我做了如下的事情。 虽然您已经提到了这一点,但是您设置了环境变量。我再次保证:

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

你把
%GRAILS\u HOME%\bin
放在你的
路径中了吗?仅供参考-在Intellij中使用Grails不需要这样做。可能在设置
Grails\u HOME
之后,
cmd
提示符没有重新启动。首先,成功验证grails-version
。@dmahapatro它是要添加的总路径。GRAILS\u HOME=c:\GRAILS和路径中添加%GRAILS\u HOME%\bin,正如James Kleeh所说:)@Mr.Cat Correct。作为一个门外汉,如果我们不提及
PATH
%GRAILS\u HOME%\bin在我的路径中,有些人会感到困惑