groovy安装
确认你电脑已经安装jdk
groovy官网:http://groovy.codehaus.org/
?
我下载的是压缩版
?
在命令行输入:D:\groovy>?groovy?hello.groovy?aa?bb?cc ??显示结果:。
- D:\groovy>groovy?hello.groovy?aa?bb?cc??
- hello,?world??
- Argument:aa??
- Argument:bb??
- Argument:cc ?
还可以进入groovyConsole窗口在命令行输入:“groovyConsole”之后打开控制台窗口,键入“println 'hello world'”之后ctrl+R,输出了“hello world”。-----------------------------------------------------groovy-eclipse?plugin安装离线安装:我下载最新的archive-2.6.0.xx-20111212-0900-e37-RELEASE.zip
在线安装:
- Download the snapshot locally
- Do?not?unzip or move into your dropins directory
- Start eclipse
- Help -> Install new software -> Add...
- Select the location of the zip you just downloaded
- Install as you would from the regular update site
Once you have a compatible Eclipse installed, then follow these directions to install Groovy-Eclipse:
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:
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.