NOTE: In this tutorial, the Groovy-Eclipse plugin is running on Eclipse 3.5.1. The user interface and task flow may vary somewhat in Eclipse 3.4.2.
GETTING HELP – If you have problems, send a message to http://xircles.codehaus.org/lists/eclipse-plugin-user@groovy.codehaus.org.
Do | See | |
---|---|---|
1 | In Eclipse, click File > New > Groovy Project.
| |
2 | In the New Groovy Project wizard, type a name in the Project Name box, and clickNext.
| |
3 | The tabs and options in the Build Settingswindow are identical to those in the the Java Development Tool (JDT).
| |
4 | Select the project in the Package Explorer, and click File > New > Groovy Class. | |
5 | In the Groovy Class wizard, type a name for the class in the Name box, a name for the package in the Package field, and clickFinish to create the class and package.
| |
6 | GroovyEclipse creates the new class. The new class,
| |
7 | Paste this code into the file: | |
8 | Right click anywhere in the editor and thenRun > Run As > Groovy Script or Java Application.
| |
9 | The greeting is issued in the Console tab. | |