[RSS]

Welcome to Groovy in NetBeans IDE!

Groovy is supported natively in NetBeans IDE from NetBeans IDE 6.5 onwards. That means that you do NOT need to install any plugins of any kind if you want to code in Groovy in NetBeans IDE.

How To Get Started

The Groovy editor is a standard part of the "Java" distribution, i.e., the distribution aimed at Web development. Also included in that distribution is support for Grails. Click here to download the "Java" distribution, 6.5 or above:

http://www.netbeans.org/downloads/index.html

Note: The Groovy editor is not part of the Java SE distribution of NetBeans IDE, since that distribution is meant to be as small as possible. You are therefore advised to use the "Java" distribution instead, if you want to use Groovy. You will then, optionally, also be able to use Grails.

Creating a Groovy Application

Here is described how to use Groovy in NetBeans IDE:

http://www.netbeans.org/kb/docs/java/groovy-quickstart.html

Here's a screenshot showing a specific icon for Groovy files in the IDE:

http://wiki.netbeans.org/attach/Groovy/groovy-10.png

Creating a Grails Application

Here is described how to use Grails in NetBeans IDE:

http://www.netbeans.org/kb/docs/web/grails-quickstart.html

You can create complete Grails applications, running all the Grails commands from the IDE.

For Grails domain and controller classes, code completion in the Groovy editor from NetBeans IDE 6.7 onwards provides the names of dynamic methods:

http://wiki.netbeans.org/attach/Groovy/grails-10.png

Creating a Griffon Application

Work is being done on Griffon support for NetBeans IDE too. A pre-alpha version of the support is available here:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=18664

For example, the Griffon plugin lets you call 'griffon create-app' from in the IDE, via the Griffon Application template:

http://wiki.netbeans.org/attach/Groovy/griffon-10.png

Attachments

grails-10.png Info on grails-10.png 32398 bytes
grails-wiz-1.png Info on grails-wiz-1.png 65166 bytes
grails-wiz-2.png Info on grails-wiz-2.png 10312 bytes
grails-wiz-3.png Info on grails-wiz-3.png 4181 bytes
grails-wiz-4.png Info on grails-wiz-4.png 85391 bytes
griffon-10.png Info on griffon-10.png 66923 bytes
groovy-10.png Info on groovy-10.png 9021 bytes