哪个java版本与grails groovy工具套件3.5兼容

时间:2015-12-23 06:31:04

标签: grails groovy

我刚接触grails groovy开发。当我尝试用ggts创建grails项目时 我收到了这个错误

Command terminated with an exception: java.lang.Exception (see details for partial output)
Command: C:\Program Files\Java\jdk1.8.0_65\bin\javaw.exe (23-Dec-2015 11:59:06 am)
---- System.out ----
|Loading Grails 2.3.8
|Configuring classpath
.
|Environment set to development
..........
|Compiling 78 source files
.Error 
|
Compilation error: startup failed:
F:\GrailsProjects\cvgrvt\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'grails.plugin.databasemigration.DbdocController'.
 @ line -1, column -1.
2 errors

---- System.err ----
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

------System.out:-----------
 |Loading Grails 2.3.8
|Configuring classpath
.
|Environment set to development
..........
|Compiling 78 source files
.Error 
|
Compilation error: startup failed:
F:\GrailsProjects\cvgrvt\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'grails.plugin.databasemigration.DbdocController'.
 @ line -1, column -1.
2 errors

------System.err:-----------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

1 个答案:

答案 0 :(得分:0)

我建议升级到grails版本2.4.4

如果您想使用版本2.3.x,请切换到JDK 7