grails不被视为内部或外部命令

时间:2013-06-10 13:40:05

标签: grails

您好我在

安装了grails
  

c:/ grails

我的Windows 7上的

目录

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

但现在我运行此命令

  

grails与-intellij整合 -

在命令提示符下抛出错误:

  

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

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

1 个答案:

答案 0 :(得分: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