本文介绍了不能将Groovy代码编译成java类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在我的Java EE应用程序中实现独立的GORM。我已经为域创建了一个Groovy类,但是我的eclipse没有将它编译成java类,GORM无法找到它。_我有
- Eclipse Helios
-
从
-
我的lib文件夹中的groovyall.jar
- 我已将我的项目配置为Groovy项目。
p>
解决方案
您是否向项目添加了Groovy性质?包含Groovy源的文件夹是否被标记为源文件夹?您是否在Groovy编译器首选项中选择了正确的Groovy版本?
I am trying to implement stand alone GORM in my Java EE application. I have created a Groovy class for domain but my eclipse is not compiling it into java class and GORM is not able to find it.
I have
- Eclipse Helios
Groovy Eclipse Plugin installed from here
groovyall.jar in my lib folder
- I have Configured my project as Groovy Project.
What else I am missing here?
解决方案
Have you added the Groovy nature to the project? Is the folder containing the Groovy sources marked as a source folder? Have you selected the correct Groovy version in the Groovy compiler preferences?
这篇关于不能将Groovy代码编译成java类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!