[英]Grails installation
I am trying to install grails in my windows 7, I have installed JDK 1.7.0 and downloaded grails from its site and extracted in path " C:\\grails
", i have jdk in " C:\\Program Files\\Java\\jdk1.7.0
".我正在尝试在我的 Windows 7 中安装 grails,我已经安装了 JDK 1.7.0 并从其站点下载了 grails 并在路径“
C:\\grails
”中解压,我在“ C:\\Program Files\\Java\\jdk1.7.0
”中有 jdk C:\\Program Files\\Java\\jdk1.7.0
”。 I have set environment variable JAVA_HOME = "C:\\Program Files\\Java\\jdk1.7.0\\bin"
and GRAILS_HOME = "C:\\grails"
and added "%GRAILS_HOME%\\bin"
and JAVA_HOME
to path from advanced settings.我已经设置了环境变量
JAVA_HOME = "C:\\Program Files\\Java\\jdk1.7.0\\bin"
和GRAILS_HOME = "C:\\grails"
并添加了"%GRAILS_HOME%\\bin"
和JAVA_HOME
到高级设置的路径。 But when i try to run "grails -v"
or "grails help"
i get the error "The system cannot find the path specified."
但是当我尝试运行
"grails -v"
或"grails help"
我收到错误"The system cannot find the path specified."
. . I even changed my directory to "C:\\grails" and ran "grails -v" but it is still giving me the same error.
我什至将我的目录更改为“C:\\grails”并运行“grails -v”,但它仍然给我同样的错误。
I dont know what is wrong with it, please help me installing this thing.我不知道它有什么问题,请帮我安装这个东西。 Thanks
谢谢
JAVA_HOME = "C:\\Program Files\\Java\\jdk1.7.0\\bin"
不能包含 'bin'
You'll want to verify that Java is working correctly first by entering "java -version" at the command line.您首先需要通过在命令行中输入“java -version”来验证 Java 是否正常工作。
When you say you extracted the zip into " C:\\grails
" does that directory now just have a single sub directory (ie " grails-2.5.0
" or whatever version you downloaded), or does it contain a bunch of sub directories (bin, conf, dist, doc. etc)?当您说您将 zip 解压缩到“
C:\\grails
”时,该目录现在是否只有一个子目录(即“ grails-2.5.0
”或您下载的任何版本),或者它是否包含一堆子目录( bin、conf、dist、doc 等)?
If the answer is the former, your GRAILS_HOME should point to " C:\\grails\\grails-2.5.0
" instead of just C:\\grails\\
如果答案是前者,则您的 GRAILS_HOME 应指向“
C:\\grails\\grails-2.5.0
”而不仅仅是C:\\grails\\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.