如何通过Windows命令Promt创建Grails项目 [英] how to create grails project through windows command promt

查看:84
本文介绍了如何通过Windows命令Promt创建Grails项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过Windows命令提示符创建Grails项目? 在Grails文档中,它说使用Posh-GVM.但是我想知道如何使用Posh_GVM.

How to create Grails project through windows command prompt? In Grails Documents it says to use Posh-GVM.But i want to know how to use Posh_GVM.

推荐答案

我认为您已设置JAVA_HOME&& GRAILS HOME

I have consider that you have set JAVA_HOME && GRAILS HOME

然后检查JAVA_HOME&& GRAILS_HOME

在命令提示符下输入:

JAVA -version 

然后检查

GRAILS_HOME

如果两个版本都显示出来,则您可以再次重置ENVIRONMENT变量.

If both are shown their version else you reset your ENVIRONMENT variable again.

如果要通过命令提示符创建grails应用程序:

If you want create grails app through command prompt :

转到cmd提示符:

使用以下命令创建目录:

create directory using following command:

mkdir grails_app

然后通过以下命令转到grails_app目录:

Then go to grails_app directory following command:

cd grails_app

然后

在命令提示符下键入以下命令以创建grails应用程序:

Type following command to create the grails application in using command prompt:

grails create-app helloworld

在这里

helloworld-Grails应用程序的名称

有关更多详细信息,您可以使用以下文档:

For more details you can use following document :

http://docs.grails.org/2.4.4 /guide/gettingStarted.html#creatingAnApplication

希望这将帮助您通过命令提示符创建grails应用

Hope this will help you create grails app through command prompt

这篇关于如何通过Windows命令Promt创建Grails项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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