|
TUTORIAL OVERVIEW
|
ALL GROOVY-ECLIPSE TUTORIALS
|
|
QUICK FACTS FOR EXPERIENCED ECLIPSE USERS
|
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 |
|---|---|
|
In Eclipse, click
File > New > Groovy Project.
|
|
|
In the
New Groovy Project wizard, type a name in
the
Project Name box, and click
Next.
|
|
|
The tabs and options in the
Build Settings window are identical to
those in the the Java Development Tool (JDT).
|
|
|
Select the project in the Package Explorer, and click File > New > Groovy Class. |
|
|
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 click
Finish to create the class and package.
|
|
|
GroovyEclipse creates the new class. The new class,
|
|
|
Paste this code into the file:
|
|
|
Right click anywhere in the editor and then
Run > Run As > Groovy Script or
Java Application.
|
|
|
The greeting is issued in the Console tab. |
|