How can I reference a Groovy domain class from Java class using Eclipse?
I've put my domain class in package:
package com.me.myproject
public class Person {
String name
int age
}
Then in my Java class I attempt to reference com.me.myproject.Person
. This works for grails run-app
(command line) but not Eclipse. Eclipse can't resolve the Groovy domain class.
I'm running Eclipse 3.4.1 with the latest Groovy and Grails Eclipse plugins:
- Grails Eclipse Feature 0.1.0 20081120_2330
- GroovyFeature 1.5.7.20081120_2330
I've tried setting the Eclipse default output folder to the same as Groovy compiler output location. I've also tried both enabling and disabling the “Disable Groovy Compiler Generating Class Files” setting. I've also tried not putting any of my classes in a package. None of these work.