---
title: "groovy&grails 初识"
author: "VerRan"
date: "2007-09-14T18:14:11Z"
tags: ["Go", "Grails", "Groovy", "JVM", "Java"]
categories: ["企业架构"]
slug: "groovy-grails"
draft: false
lastmod: "2010-07-19T15:38:15Z"
id: 123911
url: "https://verran.iteye.com/blog/123911"
---

groovy 安装

1.下载  
[http://groovy.codehaus.org/Download](http://groovy.codehaus.org/Download)  
**Download Windows-Installer**: [Binary Release](http://dist.codehaus.org/groovy/distributions/installers/windows/nsis/groovy1.0-installer.exe)  
即可  
2\. 配置环境  
JAVA\_HOME＝../java  
在安装的时候你可以选择自动设置环境变量，不过应当注意环境变量的默认安装只设置了用户环境变量，应当把系统环境变量也选择上。  
3\. 测试  
cmd  
xx&gt;groovysh  
显示  
C:\\Documents and Settings\\lht&gt;groovysh  
Let's get Groovy!  
\================  
Version: 1.1-beta-2 JVM: 1.6.0\_02-b06  
Type 'exit' to terminate the shell  
Type 'help' for command help  
Type 'go' to execute the statements

 

groovy&gt; 1+2  
groovy&gt; go

===&gt; 3

groovy&gt;

grails 安装

1\. 下载 [http://grails.org/Download](http://grails.org/Download)  
2\. 解压../grails  
3\. 设置环境变量  
GRAILS\_HOME=../gails  
PATH=%GRAILS\_HOME%/bin  
4. 测试  
cmd   
&gt;grails 

 

相关书籍：

Groovy.in.Action  
The.Definitive.Guide.to.Grails.Dec.2006