`
啸笑天
  • 浏览: 3438855 次
  • 性别: Icon_minigender_1
  • 来自: China
社区版块
存档分类
最新评论

groovy安装

 
阅读更多

确认你电脑已经安装jdk

groovy官网:http://groovy.codehaus.org/

 

我下载的是压缩版

 

  1. 将Groovy压缩包解压到指定目录(我的是D:\aaSoftware\groovy-binary-1.8.6\groovy-1.8.6)。注意:Groovy的安装路径不能有空格, 否则会出错。
  2. 设置环境变量groovy_home,新增环境变量,变量名:groovy_home、变量值:groovy的解压目录。
  3. 设置path,编辑path,在变量值后面添加%groovy_home%\bin 。
  4. 测试配置成功.在命令行中输: groovy -v //查看groovy的当前版本。
运行hello.groovy
我在d盘下新建:hello.groovy
println "hello, world"  
  
for (arg in this.args ) {  
  println "Argument:" + arg;  
}  
  
在命令行输入:
D:\groovy> groovy hello.groovy aa bb cc   
显示结果:
  1. D:\groovy>groovy hello.groovy aa bb cc  
  2. hello, world  
  3. Argument:aa  
  4. Argument:bb  
  5. Argument:cc  

还可以进入groovyConsole窗口
在命令行输入:“groovyConsole”之后打开控制台窗口,键入“println 'hello world'”之后ctrl+R,输出了“hello world”。
-----------------------------------------------------------------------------------------------------------------------------
离线安装:我下载最新的archive-2.6.0.xx-20111212-0900-e37-RELEASE.zip
  1. Download the snapshot locally
  2. Do not unzip or move into your dropins directory
  3. Start eclipse
  4. Help -> Install new software -> Add...
  5. Select the location of the zip you just downloaded
  6. Install as you would from the regular update site
在线安装:

Once you have a compatible Eclipse installed, then follow these directions to install Groovy-Eclipse:

  • Go to: Help -> Software Updates.
  • Change to the Available Software tab.
  • Click on Add Site.
  • Paste the update site URL appropriate for your version of Eclipse and click OK.
  • You should see a "Groovy Update Site" entry in the list of update sites. Expand and select the Groovy-Eclipse Plugin feature. Optionally, you can choose to include the sources..
  • Click Install and follow the prompts.
  • Restart when asked
  • Rejoice!  You installed the Groovy-Eclipse Plugin v2.

For step-by-step installation instructions, see the Install Groovy-Eclipse Plugin tutorial.

-----------------------------------------------------------------------------------------------------------------------------
创建一个Groovy项目

To create a basic Groovy project in Eclipse perform the following steps:

  • Open the Java perspective
  • Click on the new Groovy Project icon: 
  • The new project wizard for Groovy uses most of the same options as the new project wizard for Java.
  • Fill in the appropriate details and create the project.

You should have a src folder and several libraries. A bin folder is also created, but is hidden.

You can create a Groovy classes or test cases using wizards similar to the Eclipse's Java class and JUnit test case wizards. Use the options on the File > New menu or press CTRL-N.

For step-by-step instructions, see the Create Your First Groovy Project tutorial.





附:
http://pleac.sourceforge.net/pleac_groovy/内有大量丰富的样例代码,比如说你正计划编写一个工具来获取Web页面并分析,就能够在这里找到这种样例代码
分享到:
评论

相关推荐

    Groovy安装、语法和事例文件

    Groovy安装、语法和事例文件,Groovy安装、语法和事例文件.

    elipse里Groovy安装

    elipse里安装Groovy插件文档,根据自己安装的成功经验来的,我的版本是luna,然后 文档里基本各个版本的地址都有

    Groovy安装以及简单使用

    NULL 博文链接:https://hudepin.iteye.com/blog/1354537

    groovy-binary

    Groovy 安装软件,非常容易安装的一款release版本

    eclipse安装groovy插件的步骤

    eclipse安装groovy插件的步骤

    groovy2.5.6安装文件

    Groovy是一种基于JVM(Java虚拟机)的敏捷开发语言,它结合了Python、Ruby和Smalltalk的许多强大的特性,Groovy 代码能够与 Java 代码很好地结合,也能用于扩展现有代码。由于其运行在 JVM 上的特性,Groovy 可以...

    Groovy-2.4.13 windows版安装程序.rar

    Windows版本的Groovy 2.4.13.exe安装文件,默认完整安装,也可根据需要自定义安装组件。本版本经过测试能够正常安装使用,支持添加到IDEA中。和JAVA类似的动态语言Groovy,在虚拟机中运行,Groovy脚本在运行时会先...

    groovy安装包-win(第一部分)

    groovy安装包-win(第一部分)groovy安装包-win(第一部分)

    groovy-2.3.6-installer

    groovy-2.3.6-installer windows安装版本

    Groovy4.0.4版本安装

    下载直接双击打开即可

    Groovy插件

    本文档旨在教你如何在Eclipse中安装Groovy插件。

    microservices-spring-boot-groovy:使用 Spring Boot 和 Groovy 构建微服务

    微服务-spring-boot-groovy 使用 Spring Boot 和 Groovy 构建微服务创建这些项目是为了在当地的达拉斯 Groovy Grails 用户组会议上展示微服务架构这些服务使用您需要安装才能开始使用的各种外部服务。 您将需要安装 ...

    groovy-1.5.6-installer

    of Groovy: “Groovy is an agile dynamic language for the Java Platform with many features that are inspired by languages like Python, Ruby and Smalltalk, making them available to Java developers using...

    Groovy和Grails配置方法

    Groovy和Grails配置方法 教你从0入手,一步一步深入安装和测试,包含环境和语言的下载地址

    groovy脚本执行工具.zip

    执行测试开发过程中的groovy脚本,无须安装,解压即可使用,直接运行bin目录下的groovyConsole.bat即可。

    groovy eclipse 4.7 插件 Oxygen 离线安装包

    今天安装Groovy插件总是失败,好不容易搞定了,特上传给碰到相同问题的童鞋,附groovy eclipse 4.7 Oxygen2 离线安装包 ,以及教程!

    groovyEclipse

    在eclipse中安装groovy的必须插件。

    groovy-2.4.12-installer.exe

    groovy-2.4.12 windows 安装包 Groovy 2.4 is the latest stable version of Groovy. For Windows installer 截至2017.11.09 groovy最新最稳定版本 md5: 4e5732125554bc25e074a85fbcf114f2 大小:46.6 MB

    groovy-3.0.3.msi

    groovy,windows安装版,免去直接下载了,自动配置好环境变量,非常方便,国外网站有的很难打开,如此,开箱即用。。。

Global site tag (gtag.js) - Google Analytics