### IntelliJ IDEA

IntelliJ IDEA and the JetGroovy plug-in offer good support for Groovy/Grails/Griffon developers. Refer to the section on Groovy and Grails support on the JetBrains website for a feature overview.

#### Integrating an existing Griffon project

To integrate Griffon with IntelliJ run the following command to generate appropriate project files:

    griffon integrate-with --intellij

#### Creating a new Griffon project

Follow these steps to create and run a new Griffon project with IDEA

#1 Bring up the "New Project" wizard. You should see Griffon as one of the available options

#2 Choose name and location for the new project

#3 Configure a Griffon SDK if you haven't done so already

#4 Click on the Finish button and develop with pleasure your Griffon project

### NetBeans

A good Open Source alternative is Oracle's NetBeans, which provides a Groovy/Griffon plugin that automatically recognizes Griffon projects and provides the ability to run Griffon applications in the IDE, code completion and integration with Oracle's Glassfish server.

#### Integrating an existing Griffon project

NetBeans does not require any special integration support, it understands the layout of a Griffon project as long as the Griffon plugin is installed. Just select "Open" from the menu and locate the folder that contains your project. It's that simple. Follow these steps to install the Griffon NetBeans plugin.

Prerequisites: Java, Groovy and Grails plugins installed and up to date.

#1 Download the plugin

Follow this link to download the latest zip distribution of the plugin.

#2 Unpack the zip file into a directory of your choosing

#3 Open the plugin manager dialog. Go to the "Downloaded" tab, then click on the "Add Plugins..." button. Locate and select the NBM files that were uncompressed in the previous step.

#4 Select both plugins (using the checkboxes) and click on "Install".

#5 Restart your IDE and enjoy!

#### Creating a new Griffon project

Prerequisites: You must have the Griffon plugin installed. Follow the steps explained in the previous section to get the job done.

#1 Bring up the "New Project" wizard. Click on "Groovy" then on "Griffon Application".

#2 Choose name and location for the new project

#3 Configure a Griffon SDK if you haven't done so already

#4 Click on the Finish button

### Eclipse

We recommend that users of Eclipse looking to develop Griffon application take a look at SpringSource Tool Suite, which offers built in support for Groovy.

#### Integrating an existing Griffon project

To integrate Griffon with Eclipse run the following command to generate appropriate project files:

    griffon integrate-with --eclipse

Then follow these steps to fully integrate and run the application

#1 Install the Eclipse Support plugin

    griffon install-plugin eclipse-support

#2 Configure a pair Classpath User Variables in the preferences dialog. GRIFFON_HOME should point to the install directory of Griffon, while USER_HOME should point to your account's home directory.

#3 Bring up the "New Project" wizard. Select "Existing Projects into Workspace"

#4 Select the directory of the application that contains .project/.classpath files

#4 Click on the Finish button

##### Running Griffon commands within Eclipse

We'll rely on Eclipse's Ant support to get the job done, but first we need to generate an Ant build file

    griffon integrate-with --ant

Refresh the contents of your project. Open the build file in the Ant View. Select any target and execute by double clicking on it.

### TextMate

Since Griffon' focus is on simplicity it is often possible to utilize more simple editors and TextMate on the Mac has an excellent Groovy/Griffon bundle available.

Follow these steps to install the Groovy bundle

#1 Create a local bundle directory

    mkdir ~/Library/Application Support/TextMate/Bundles/

#2a If you have git installed then just clone the repository

    cd ~/Library/Application Support/TextMate/Bundles/
    git clone https://github.com/textmate/groovy.tmbundle.git

#2b Alternatively download a copy of the latest version from github as a zip and unpack it. Rename the unpacked directory to `groovy.tmbundle`.

Follow these steps to install the Griffon bundle

#1 Create a local bundle directory

    mkdir ~/Library/Application Support/TextMate/Bundles/

#2a If you have git installed then just clone the repository

    cd ~/Library/Application Support/TextMate/Bundles/
    git clone https://github.com/griffon/griffon.tmbundle.git

#2b Alternatively download a copy of the latest version from github as a zip and unpack it. Rename the unpacked directory to `griffon.tmbundle`.

Now configure the `PATH` environment variable within TextMate. Make sure that `$GRIFFON_HOME/bin` in expanded form is set

#### Integrating an existing Griffon project

To integrate Griffon with TextMate run the following command to generate appropriate project files:

    griffon integrate-with --textmate

Alternatively TextMate can easily open any project with its command line integration by issuing the following command from the root of your project:

    mate .

You should see a similar display like the next one

##### Running Griffon commands within TextMate

The Griffon bundle provides new commands under the "Bundles" menu. Search for the "Griffon submenu".

Selecting "Run App" will execute the run-app command on the currently open project