Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p><br class="atl-forced-newline" /></p> <p>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. <br class="atl-forced-newline" /></p> <h3>How To Get Started</h3> <p>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:</p> <p><a href="http://www.netbeans.org/downloads/index.html">http://www.netbeans.org/downloads/index.html</a></p> <p><strong>Note:</strong> 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.</p> <h3>Creating a Groovy Application</h3> <p>Here is described how to use Groovy in NetBeans IDE:</p> <p><a href="http://www.netbeans.org/kb/docs/java/groovy-quickstart.html">http://www.netbeans.org/kb/docs/java/groovy-quickstart.html</a></p> <p>Here's a screenshot showing a specific icon for Groovy files in the IDE:</p> <p><img class="confluence-embedded-image" src="/download/attachments/230400696/groovy-10.png?version=1&modificationDate=1368975134414" data-image-src="/download/attachments/230400696/groovy-10.png?version=1&modificationDate=1368975134414" data-linked-resource-id="230565168" data-linked-resource-type="attachment" data-linked-resource-default-alias="groovy-10.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400696" title="null > groovy-10.png"><br class="atl-forced-newline" /></p> <h3>Creating a Grails Application</h3> <p>Here is described how to use Grails in NetBeans IDE:</p> <p><a href="http://www.netbeans.org/kb/docs/web/grails-quickstart.html">http://www.netbeans.org/kb/docs/web/grails-quickstart.html</a></p> <p>You can create complete Grails applications, running all the Grails commands from the IDE.</p> <p>For Grails domain and controller classes, code completion in the Groovy editor from NetBeans IDE 6.7 onwards provides the names of dynamic methods:</p> <p><img class="confluence-embedded-image" src="/download/attachments/230400696/grails-10.png?version=1&modificationDate=1368975134413" data-image-src="/download/attachments/230400696/grails-10.png?version=1&modificationDate=1368975134413" data-linked-resource-id="230565167" data-linked-resource-type="attachment" data-linked-resource-default-alias="grails-10.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400696" title="null > grails-10.png"><br class="atl-forced-newline" /></p> <h3>Creating a Griffon Application</h3> <p>Work is being done on Griffon support for NetBeans IDE too. A pre-alpha version of the support is available here:</p> <p><a href="http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=18664">http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=18664</a><br class="atl-forced-newline" /></p> <p>For example, the Griffon plugin lets you call 'griffon create-app' from in the IDE, via the Griffon Application template:</p> <p><img class="confluence-embedded-image" src="/download/attachments/230400696/griffon-10.png?version=1&modificationDate=1368975134402" data-image-src="/download/attachments/230400696/griffon-10.png?version=1&modificationDate=1368975134402" data-linked-resource-id="230565166" data-linked-resource-type="attachment" data-linked-resource-default-alias="griffon-10.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400696" title="null > griffon-10.png"><br class="atl-forced-newline" /></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced