Shady Hussein
Shady Hussein

Reputation: 497

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

Upvotes: 0

Views: 3664

Answers (4)

Sreehari Puliyakkot
Sreehari Puliyakkot

Reputation: 736

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.

Upvotes: 0

Shady Hussein
Shady Hussein

Reputation: 497

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 :)

Upvotes: 0

Andrew Eisenberg
Andrew Eisenberg

Reputation: 28757

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/

Upvotes: 1

Mikezx6r
Mikezx6r

Reputation: 16905

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.

Upvotes: 1

Related Questions