我工作的公司的前任员工在Grails 1.2中制作了一个精美的模块,但是没有人知道如何在本地机器上进行设置。
我正在尝试从头开始设置一个测试项目,只是为了让它工作,但似乎IntelliJ正在对我不利。当我在IntelliJ中创建一个新项目时,它会运行一个CreateApp脚本,它会像这样失败:
"C:\Program Files (x86)\Java\jdk1.8.0_65\bin\java" -Dgrails.home=C:/tools/grails-1.2.5 "-Dtools.jar=C:\Program Files (x86)\Java\jdk1.8.0_65\lib\tools.jar" -Dgroovy.starter.conf=C:/tools/grails-1.2.5/conf/groovy-starter.conf -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=windows-1252 -classpath C:\tools\grails-1.2.5\lib\groovy-all-1.6.8.jar;C:\tools\grails-1.2.5\dist\grails-bootstrap-1.2.5.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:/tools/grails-1.2.5/conf/groovy-starter.conf "create-app grailstest2 --inplace"
Welcome to Grails 1.2.5 - [url]http://grails.org/[/url]
Licensed under Apache Standard License 2.0
Grails home is set to: C:/tools/grails-1.2.5
Base Directory: C:\grailstest2
Resolving dependencies...
Dependencies resolved in 972ms.
Running script C:\tools\grails-1.2.5\scripts\CreateApp_.groovy
Error executing script CreateApp: No signature of method: java.lang.Boolean.toBoolean() is applicable for argument types: () values: []
groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.toBoolean() is applicable for argument types: () values: []
at _GrailsSettings_groovy.run(_GrailsSettings_groovy:74)
at _GrailsSettings_groovy$run.call(Unknown Source)
at _GrailsClasspath_groovy$run.call(Unknown Source)
at _GrailsClasspath_groovy.run(_GrailsClasspath_groovy:32)
at _GrailsClasspath_groovy$run.call(Unknown Source)
at _GrailsEvents_groovy$run.call(Unknown Source)
at _GrailsEvents_groovy.run(_GrailsEvents_groovy:30)
at _GrailsEvents_groovy$run.call(Unknown Source)
at _GrailsClean_groovy$run.call(Unknown Source)
at _GrailsClean_groovy.run(_GrailsClean_groovy:29)
at _GrailsClean_groovy$run.call(Unknown Source)
at _GrailsPlugins_groovy$run.call(Unknown Source)
at _GrailsPlugins_groovy.run(_GrailsPlugins_groovy:28)
at _GrailsPlugins_groovy$run.call(Unknown Source)
at _GrailsCreateProject_groovy$run.call(Unknown Source)
at _GrailsCreateProject_groovy.run(_GrailsCreateProject_groovy:28)
at _GrailsCreateProject_groovy$run.call(Unknown Source)
at CreateApp_.run(CreateApp_:25)
at CreateApp_$run.call(Unknown Source)
at gant.Gant.processTargets(Gant.groovy:494)
at gant.Gant.processTargets(Gant.groovy:480)
Error executing script CreateApp: No signature of method: java.lang.Boolean.toBoolean() is applicable for argument types: () values: []
这是我在尝试构建工作模块时遇到的同样的错误,所以我认为我搞砸了SDK安装,但我不记得除了解压缩zip文件和设置路径变量之外的任何其他操作。
我在哪里搞砸了?
答案 0 :(得分:0)
Where did I screw up?
Grails 1.2.5 will not support JDK 1.8. The first version of Grails with real support for JDK 1.8 is Grails 2.5.