eclipse - Java project with Groovy not compiling -


i'm using eclipse jdk1.7.0_21.

i have java project contains groovy files. installed groovy-eclipse featurs (as shown in image below) groovy eclipse

but project still has compiling error (the error in classes i'm trying import groovy file , not probably)

what need add/change in order compile project?

is possible import groovy file in java file? mean: "import myproject.groovyfile;" while groovyfile groovy file instead of java class

thanx!

you need add groovy library classpath.

right click project, go "build path"->"add library"->groovy runtime libraries.

another suggestion (which helped in case): add dummy groovy class project, clean , rebuild, , remove groovy class.


Comments