Grails 不被识别为内部或外部命令 (Windows 7) [英] Grails is not recognized as an internal or external command (Windows 7)
问题描述
我不知道我做错了什么...
I don't know what I'm doing wrong...
首先我下载并解压了 C: 中的文件夹:
First I've downloaded, and unzipped the folder in C: :
然后,将其设置为用户变量:
Then, set it as a user variable :
并将其添加到我的路径中:
And added it to my PATH :
即使在重新启动 cmd 后,当我检查 grails -version
时,我得到了这个:
And even after restarting cmd, when I check grails -version
I get this :
grails 不是内部或外部命令,也不是可运行的程序或批处理文件.
grails is not recognized as an internal or external command, operable program or batch file.
怎么了?感谢您的帮助.
What is wrong? Thanks for your help.
推荐答案
先在CMD
命令行类型试试这个
First try this one on CMD
commandline type
回显 %GRAILS_HOME%
然后输入 path
并查看 grails 路径是否类似于:
Then type path
and see if the grails paths is something like :
C:Windowssystem32;C:Windows;C:grails2.1.1
好的,如果在任何情况下我建议你用 C:grails2.1.1
替换 GRAILS_HOME
ok , if in any case i sugget you replace the GRAILS_HOME
with C:grails2.1.1
C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32Win d owsPowerShellv1.0;%JAVA_HOME%in;%GRAILS_HOME%in;
与
C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32Win d owsPowerShellv1.0;%JAVA_HOME%in;c:grails2.1.1in;
然后注销或重新启动 PC 它应该可以工作,如果没有检查您的 grails 包中的文件名 grails.bat 或尝试通过提供 CMD
的确切路径来运行它!!
Then logout or restart the PC it should work ,if not check your package of grails for a file names grails.bat something or try to run it by giving the exact path from CMD
!!
喜欢:
cmd > c:grails2.1.1instartGrails.bat
这篇关于Grails 不被识别为内部或外部命令 (Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!