"griffon create-app" in NetBeans IDE

Big advance in the Griffon story today in NetBeans IDE—Griffon commands can now be run, such as "griffon create-app" and "griffon run-app":

  1. Specify that you want to create a new Griffon application:

  2. Define a name and a place to store it:

    Note: The IDE automatically picks up "GRIFFON_HOME", if you have defined it. If you haven't defined it, you can't continue with the next step (the "Finish" above is then greyed out), so that you have to click the "Configure" button above, which puts you into the Options window shown yesterday, where you then need to define the location of your Griffon distribution.

  3. Then the IDE creates the application, calling "griffon create-app", using the Groovy script in the Griffon distribution, and opens the application thusly created into the IDE. Next, you can simply run the application, which means that you get the IDE to call "griffon run-app":

  4. Or open one of the samples from the Griffon distribution and run it:

However, still too early to make any kind of distribution available. Need to backtrack a bit and make it possible again to create Grails applications as well. Plus, the generation of Griffon artifacts doesn't work at the moment.

In other news. Did a lot of tweeting today. Follow me here, many updates can be expected relating to Griffon support in the IDE: https://twitter.com/GeertjanW


Thank you very much.

Posted by Sesli Chat on May 28, 2009 at 01:54 PM PDT #

Hi Geertjan,
I'm exploring Griffon and trying to set it up in Netbeans. Have had a problem as reported on the plugin page - the Griffon plugins expect Groovy Support (I thinks its just 'Groovy') and Editor Options and they are not being found. I have set up a Grails app, but that didn't help. The plugin page does not seem to accept comments currently. Any help/advice appreciated.

Posted by Roger Lovelock on July 30, 2009 at 07:37 PM PDT #

Once you start editing a Groovy file in the Grails app, the Groovy stuff should become enabled. Try it and see.

Posted by Geertjan on July 31, 2009 at 12:02 AM PDT #

Hi Geertjan,
Sorry, no joy - have edited a groovy file in my grails project, then saved and run it - works OK - but cannot install Griffon add-ins - same messages as before.

Posted by Roger Lovelock on July 31, 2009 at 07:47 AM PDT #

By the way - Groovy is listed as installed and active in the add-ins (but not Groovy Support or Editor Options)

Posted by Roger Lovelock on July 31, 2009 at 07:50 AM PDT #

So go to the Plugin Manager and install those modules. I need to change the Griffon plugin to install those automatically, for now, you need to do it yourself, it seems. But not everyone has this problem, so maybe you don't have the "Java" distribution of NetBeans IDE? Maybe you have the "Java SE" distro, I don't know.

Posted by Geertjan on July 31, 2009 at 07:07 PM PDT #

My version of Netbeans is the Java distribution (it already includes the Groovy plugin pre-installed :-
Product Version: NetBeans IDE 6.7.1 (Build 200907230233)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Windows Vista version 6.0 running on x86; Cp1252; en_AU (nb)
These plugins are not listed as available plugins under tools/plugins in the ide.
They are also not available as plugins on the plugins page of the Netbeans web-site - in fact if you go through that page and select Groovy when you click download it just takes you to a page that says Groovy support is already in Netbeans. I think someone needs to try a fresh install of Griffon and Netbeans on a clean Vista machine probably to get the results I am getting. I really want to try out Griffon, so shortly I will be giving up on Netbeans and setting up a more component based environment eg Jedit, dbclient, standalone iReport etc. I'm already becoming a little unhappy with the amount of 'bloat' with Netbeans and the need to install Grails (I am not a web developer and am coming from an alternative desktop development framework).

Posted by Roger Lovelock on August 01, 2009 at 08:14 AM PDT #

No, you don't need to install Grails at all. That's the whole point of the latest version of the Griffon plugin, if you go back to the plugin page and read it. And, I have set up the Griffon plugin without the problem you describe, on exactly the environment you describe, i.e., Vista with 6.7.1.

Posted by Geertjan on August 01, 2009 at 06:53 PM PDT #

PS: The word "bloat" is completely inappropriate in the context of NetBeans IDE. And, it IS a component based environment. That's why you're able to install plugins at all, after all... Anyway, please write to me directly at geertjan DOT wielenga AT sun DOT com and I'll try to sort the problem out directly with you, rather than via a blog. Then I'll publish whatever steps need to be taken in addition to those already published, once I've figured them out with you.

Posted by Geertjan on August 01, 2009 at 06:58 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« August 2016