在Eclipse中编译Groovy文件 [英] Compile Groovy files in Eclipse

查看:401
本文介绍了在Eclipse中编译Groovy文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的java web项目包含一些Groovy代码。但eclipse不识别Groovy文件,也不会生成任何类。
我在Eclipse中安装了Groovy插件。在我的Windows机器上安装Groovy并设置GROOVY_HOME并在我的lib文件夹中包含groovyall jar文件。但没有运气。



请帮助。

解决方案

使用 STS ,当仪表板打开时,点击扩展标签并点击Groovy语言功能并安装它。然后右键单击项目 - > Spring - >配置groovy自然也可以使用groovy。另外一个选项是创建一个新的Groovy项目,结果是你可以使用任何一个Groovy项目中的java文件,因为它们很好地结合在一起。


My java web project includes some Groovy code. But eclipse is not recognizing Groovy files and not generating any classes out of it. I have installed Groovy plugin in Eclipse. Installed Groovy in my windows machine and setup GROOVY_HOME and include groovyall jar file in my lib folder. But no luck.

Please help.

解决方案

You could also use STS, when the dashboard opens up click on the "extensions" tab and click on the Groovy language feature and install it. Then right click on project, -> Spring -> configure groovy nature to use groovy also.

Another option is create a new Groovy project, the upshot is that you can use any java file within a groovy project since they are so well coupled.

这篇关于在Eclipse中编译Groovy文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆