Grails不被识别为内部或外部命令(Windows 7) [英] Grails is not recognized as an internal or external command (Windows 7)

查看:424
本文介绍了Grails不被识别为内部或外部命令(Windows 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我在做什么错误...

首先,我已经下载并解压缩了C:\文件夹:





然后,将其设置为用户变量:





并将其添加到我的路径中:


即使在重新启动cmd后,当我检查 grails -version 我得到这个:


grails不被识别为内部或外部命令,可操作程序或批处理文件。


有什么不对?感谢您的帮助。

解决方案

首先在 CMD 命令行type



echo%GRAILS_HOME%

然后键入 path 并查看grails路径是否如下所示:

C:\ Windows \system32; C:\Windows; C:\grails2.1.1



好的,如果在任何情况下我建议您替换 GRAILS_HOME C:\grails2.1.1



C:\ Windows \ system32; C:\ Windows; C:\Windows\System32\Wbem; C:\ Windows \ System32\Win dowsPowerShell\v1 .0 \;%JAVA_HOME%\bin;%GRAILS_HOME%\bin;



with

C:\ Windows \ system32; C:\ Windows; C:\Windows\System32\Wbem; C:\Windows\System32\ Win dowsPowerShell\v1.0\;%JAVA_HOME%\bin; c:\grails2.1.1\bin; code>



然后注销或重新启动它应该工作的PC,如果没有检查你的grails包是否包含某个文件名或grails.bat的东西或尝试运行它通过给出 CMD !!



的确切路径:

  cmd> c:\grails2.1.1\bin\startGrails.bat 


I don't know what I'm doing wrong...

First I've downloaded, and unzipped the folder in C:\ :

Then, set it as a user variable :

And added it to my PATH :

And even after restarting cmd, when I check grails -version I get this :

grails is not recognized as an internal or external command, operable program or batch file.

What is wrong? Thanks for your help.

解决方案

First try this one on CMD commandline type

echo %GRAILS_HOME%

Then type path and see if the grails paths is something like :

C:\Windows\system32;C:\Windows;C:\grails2.1.1

ok , if in any case i sugget you replace the GRAILS_HOME with C:\grails2.1.1

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Win‌​d owsPowerShell\v1.0\;%JAVA_HOME%\bin;%GRAILS_HOME%\bin;

with

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Win‌​d owsPowerShell\v1.0\;%JAVA_HOME%\bin;c:\grails2.1.1\bin;

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!!

like :

cmd > c:\grails2.1.1\bin\startGrails.bat 

这篇关于Grails不被识别为内部或外部命令(Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆