【发布时间】:2017-12-14 09:20:44
【问题描述】:
我也面临同样的问题。我已尝试多次清理该项目。尝试创建新工作区尝试干净安装,但仍然面临同样的问题
失败:
Loading Grails 2.4.4
.
|Environment set to production
.................................
|Packaging Grails application
...........
|Compiling 115 source files [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] C:\src\sw\compiler\test\reports\TRez\grails-app\domain\automatedreports\TestRun.groovy: 3: unable to resolve class java.sql.SQLType
[groovyc] @ line 3, column 1.
[groovyc] import java.sql.SQLType;
[groovyc] ^
[groovyc]
[groovyc] 1 error
.Error
|
Compilation error: startup failed:
C:\src\sw\compiler\test\reports\TRez\grails-app\domain\automatedreports\TestRun.groovy: 3: unable to resolve class java.sql.SQLType
@ line 3, column 1.
import java.sql.SQLType;
^
1 error
Error |
org.codehaus.groovy.grails.cli.ScriptExitException
Error |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Error |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
Error |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
Error |
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
---more like this
任何人都可以帮忙,因为我完全被困在这里
【问题讨论】:
-
java.sql.SQLType 已随 Java 8 添加。您是否针对 Java 7 进行编译?另见stackoverflow.com/questions/29287688/…
-
是的。我使用的是 Java7
标签: grails