grails windows安装

1 下载grails  http://grails.org/Download/

2解压到你需要安装的目录:C:\Program Files\grails-2.1.0

3 设置环境变量: GRAILS_HOME=C:\Program Files\grails-2.1.0,添加path:;%GRAILS_HOME%\bin;

4启动grails

可能会遇到的错误

C:\Documents and Settings\Administrator>grails
Error opening zip file or JAR manifest missing : C:/Program
JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败
JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMain 失败
Could not create the Java virtual machine.
解决方法:

修改C:\Program Files\grails-2.1.0\bin下startGrails.bat文件


将  setAGENT_STRING=-javaagent:%GRAILS_HOME:\=/%/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.6.jar -noverify -Dspringloaded=%SPRINGLOADED_PARAMS%

修改为
set AGENT_STRING="-javaagent:%GRAILS_HOME:\=/%/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.6.jar" -noverify -Dspringloaded=%SPRINGLOADED_PARAMS%
区别在于加了双引号


重启 grails  搞定

你可能感兴趣的:(java,grails)