Java J2EE Portal
Enterprise Java Station
J2EE curve
Java News / Articles
Java News / Articles
JavaOne Update - JavaFX, Java On Linux & Oracle JSF
Java Cryptography : A Bird's Eye View
J2EE vs JavaEE - Simplify programming
Processing...
Buy Java, Deals On Software Technology Store
Click here for great deals on computers, laptops, software and books
Scripting Jython and Groovy using Coyote with NetBeans PDF Print
Written by Harshad Oak   
Apr 10, 2006 at 03:43 AM

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.

GroovyNetBeans5.0Coyote

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.

>>> Harshad Oak

Related:
>> 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?


User Comments

Comment by 'Guest' on 2006-04-10 12:32:54
As scripting langauges don't compile, there's not much need for an IDE. Text editor plugins for Groovy and Jython will be good enough
Your Name / Email Address
Comment
Spam Protection - Please enter the code in the image -

Listen to code


Add This Feed Button

Enter your Email


Java Expert Interviews
Pradeep Chopra Whizlabs
Certifying your way to success
The future of the Java platform lies in the mobile world
GraemeRocher-Grails
Grails is a breath of fresh air for Java developers
Processing...
Go to top of page  Home |
SiteMap

Copyright 2004 to 2008 Rightrix Solutions. All rights reserved. All product names are trademarks of their respective companies. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Rightrix Solutions and IndicThreads.com are independent of Sun Microsystems, Inc.

Views expressed at IndicThreads.com reflect the views of the authors alone, and do not necessarily reflect those of IndicThreads.com. IndicThreads.com and it's authors are not responsible for reader comments and opinions.

Enterprise Java J2EE JEE Portal >> IndicThreads.com