Groovy support in NetBeans - netbeans

I'm trying to set up Groovy in NetBeans 7.4, apparently it should already be installed and ready to use.
I'm following the guide in the NetBeans documentation, but step 6 says "Select Groovy Class in the Groovy category."
When I right click in the project to add a new file, i have no Groovy Category! What am I missing here?

You need to download the "ALL" variant of Netbeans, or install the Groovy Plugin from inside Netbeans to get Groovy Support :-)

Related

Eclipse does not recognize Apache library using Groovy plugin

Look at the picture, I have already added libraries to Buildpath, but Eclipse does not recognize an Apache class. How can I make eclipse recognize new jars using Groovy plugin from codehaus?
Looks like a typical eclipse failure.
Project -> Clean will fix it.

How to use Netbeans plugin?

I'm using NetBeans 7.2.1 and I'm new to Java (but I program in C# for most of the time).
I recently downloaded, installed and activated a plugin (nbm file) from Java.net. I had been struggling on how to "Import" or "Package" it within my JFrame application in order for me to start writing the code.
Here is the link to download the plugin: http://java.net/projects/nbplugin-avr/downloads
Can some one please guide me on this, it is greatly different in C#.
plugins work on netbeans app. it adds functions to the netbeans IDE. plugins aren't classes you can import to your projects.
you should also check if that plugin is written for netbeans 6 or 7. netbeans 6 plugins dont work on netbeans 7

Grails 2.2.0 Support in Eclipse

I am trying to create a grails 2.2.0 project using eclipse-jee-juno. It gives me an error
Groovy compiler level expected by the project does not match workspace compiler level.
Project compiler level is: 1.8.X
Workspace compiler level is 1.7.X
Go to Project properties -> Groovy compiler to set the Groovy compiler level for this project.
Background: I have installed grails 2.2.0 and I am able to create and run a sample project/controller by using the command line (not eclipse)
Grails 2.x need groovy 1.8+ to work. In eclipse, right click your project, select 'properties' from menu and go to Groovy compiler, select groovy version 1.8.xxxx. Or you can go to 'preference' menu and change the global setting for groovy compiler version.
Here are the steps that enabled me to run the application on grails 2.2.0.
Install JDK 7
Install Grails 2.2.0
Install eclipse-jee-juno or GGTS
Download grails-2.2.0.RC4
Under GRAILS_HOME\lib, Create a directory com.springsource.springloaded with a subdirectory springloaded-core
Copied contents of RC4\lib\org.springsource.springloaded into com.springsource.springloaded
Restart GGTS or Eclipse. Your GRAILS app should be up and running!

Plug-in for Eclipse

I am developing a plug-in for eclipse for JSHOP2 language. For that i made a plug-in project with 'editor'. I have written the code for the neceessary syntax highlighting for JSHOP2 but I don't know how to integrate this types of plug-in with eclipse and then how to take use of it, so that while i write the JSHOP2 code the necessary syntax gets highlighted. Please help me with this.
So you have an editor that works correctly?
Then you need to make sure the files with your extension are opened with your editor. That is described in the Eclipse wiki.
To make sure your plugin is integrated to your version of Eclipse, either create an update site and import the plugin as you would do with any other plugin. Or export the plugin to a jar and copy the jar to the dropins catalog.
Since you are using eclipse to write java code (plug-in project). Create a new eclipse launch configuration. Menu Run -> Run Configuration. Location eclipse application. Right click -> Create new & Run. Hope this helps.

Groovy + Eclipse

I have a simple question regarding groovy with eclipse. I downloaded the plugin as mentioned and i didnt have problems with installations but i have compiler errors in hello p. the problem in my opinion that eclipse isnot using the groovy compiler. but i have no idea what to do
Is the filename extension .groovy?
Are you sure the project has the Groovy nature? (right-click on the project, and ensure Remove Groovy Nature appears. If Add Groovy nature appears, then the project doesn't have a groovy nature, and therefore the groovy compiler won't work).
Could you also post the file that isn't compiling. There might be something wrong with what you typed.
Make sure you are opening the file in a Groovy editor.
Look for any exceptions in your error log.
Also, just in case, you can try uninstalling and reinstalling the plugin. I'd recommend using the latest milestone version as that one is about to be promoted to 2.1.2 final.
http://dist.springsource.org/milestone/GRECLIPSE/e3.6/
I confirmed that Groovy plugin isnot workingn on mac. I tried it on 2 machines and they are giving the same error. Groovy plugin is working on windows without problems :)
NetBeans is a better option for Groovy+Java development. You can mix Java and Groovy files in a Java project in NetBeans. It also creates a distributable jar for your project. No classpath and jar issues with NetBeans created MET-INF file.