How to use groovy inside a Eclipse RCP project?

拟墨画扇 提交于 2019-12-05 12:45:24

Use the latest version of Groovy-Eclipse 2.1.0 (or one of the dev builds). Update site is here:

http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.6/

Additionally, there are some steps you need to do to compile the groovy plugins when you the PDE build. I'd recommend reading:

http://contraptionsforprogramming.blogspot.com/2010/08/groovy-pde-redux.html

Essentially, you need to include the org.codehaus.groovy bundle in your rcp app, and then you need to make some changes to the build.properties file of your Groovy plugins (explained in detail on the blog post).

Are you using the latest Version of eclipse (3.6) and the groovy plugin? I recall occasionally having problems with the Java and Groovy compilers not finding each other's classes (in the first version of the plugin, it took a lot of fiddling and luck to get it to work at all). The most recent version seems to be pretty good in that regard, though I've been using it only for a few days myself.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!