“无法解析类groovy.io.FileType”错误 [英] "unable to resolve class groovy.io.FileType" error
本文介绍了“无法解析类groovy.io.FileType”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ b
What's causing this?
$ echo -e "import groovy.io.FileType;\nprintln 'hello'" > foo.groovy
$ groovy foo.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /work/fun/BitMarket/database/foo.groovy: 1: unable to resolve class groovy.io.FileType
@ line 1, column 1.
import groovy.io.FileType;
^
1 error
我的Groovy版本是1.6。 4。这个课程是在以后的版本中添加的?
My Groovy version is 1.6.4. Was this class added in a later version?
推荐答案
基于 GroovyDocs class <$ c $ Groovy 1.7.1版引入了c> groovy.io.FileType 。 版本1.6.4的GroovyDocs 并不表示该类存在。我想你必须升级你的Groovy JDK。
Based on the GroovyDocs the class groovy.io.FileType
was introduced in Groovy version 1.7.1. The GroovyDocs for version 1.6.4 don't indicate that this class exists. I guess you have to upgrade your Groovy JDK.
这篇关于“无法解析类groovy.io.FileType”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文