Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Groovy With Netbeans

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know how to use Groovy with NetBeans to create a Java application, rather than a scripting project?

It's easy enough to set up a scripting project, but I'm trying to mix Java and Groovy; I want Java code to know about Groovy and vice versa.

I've read the Groovy website explanation on how to use the two together, but that's for command line compilation, not an IDE that compiles on the fly.

I've gotten this to work in Eclipse, but with NetBeans, if a Groovy file exists in the same package as a Java file, the Java file generates a 'Cannot find symbol <whatever>' error.

Any thoughts?
Doug
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am just taking a look at Groovy right now, so this is just a stab, but you might need to add the groovy-all*.jar file to your classpath.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In case you're still looking for an answer to this...

You can read the download & installation instructions for the Netbeans plugin here.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic