Scripting Jython and Groovy using Coyote with NetBeans

If Guillaume’s Groovy interview has got you interested in Groovy, the Coyote project can quickly get you started with Groovy development using NetBeans. The Coyote project goal says “The goal of this project is to develop a set of NetBeans modules to help developers write code in dynamic languages using the NetBeans IDE. Initially, we are targeting the Groovy and Jython languages, but we anticipate a common framework allowing support for more languages”

If you expect Java like support for Groovy and Jython, you will be disappointed as you won’t get any auto completes or wizards to help you out. But you do get file creation, syntax highlighting and you can even execute the script directly from the IDE.

To start scripting with Groovy / Jython using Coyote on NetBeans 5.0, you need to perform the following steps:

1) Download the Coyote NBMs for NetBeans 5.0
2) Extract the contents of the zip file.
3) In NetBeans 5.0, select Tools> Module Manager > Update > Install Manually Downloaded Modules from the Menu. Now select all the NBM files.
4) In the final Install Modules screen, don’t forget to check the Include checkbox against each module. There’s surprisingly no “Select All” option there
5) Set the Groovy Home directory using Tools > Options> Advanced Options> Building > Groovy. You can similarly set the Jython Home if you wish to work with Jython

In the New Project dialog for NetBeans, you will now see a new Category named “Scripting”. You can now create and execute Groovy scripts and even Groovy test cases using the tools provided. “Execute Script” is the first icon in the toolbar displayed.


Groovy Scripting with NetBeans 5.0

Groovy’s support across IDEs is pretty light so far. Hopefully things will pick up once Groovy has a final release.

>> Jython vs Groovy
>> A Python in Java land
>> Introduction To Groovy @ The IndicThreads Pune Java Meet
>> Groovy bridges the scripting and the enterprise Java worlds
>> Can you tell us where the popular Java IDEs stand as regards Groovy support?

Harshad Oak

Harshad Oak is the founder of Rightrix Solutions & IndicThreads. He is the author of 3 books and several articles on Java technology. For his contributions to technology and the community, he has been recognized as an Oracle ACE Director and a Sun Java Champion. Contact - harshad aT rightrix doT com & @HarshadOak

0 thoughts on “Scripting Jython and Groovy using Coyote with NetBeans

  • July 13, 2006 at 1:07 am

    It looks like Groovy has gotten over some of its past rough spots and is now closing in on a 1.0 release. I like it.

Leave a Reply