Grails类路径问题
Grails classpath issue
我在尝试使用 "grails compile" 编译项目时遇到问题。我收到以下错误:
| Configuring classpath
| Error Error executing script Compile: startup failed:
_GrailsClasspath_groovy: 17: unable to resolve class
org.codehaus.groovy.grails.compiler.GrailsProjectCompiler
@ line 17, column 1.
我对 groovy/grails 很陌生,但我认为这是某处某些类路径的问题。但是,我在我的项目中找不到任何包含字符串 "GrailsProjectCompiler" 的文件。我尝试在 google 和 Whosebug 中搜索类似问题,但我发现的唯一一个 (http://grails.1312388.n4.nabble.com/Unable-to-resolve-class-org-codehaus-groovy-grails-compiler-GrailsProjectCompiler-td4641043.html) 对我不起作用。
有人对可能出现的问题有什么建议吗?
编辑:Grails 是 2.3 版,这是 Mac OS X El Capitan 运行 JDK 1.8
如问题所述:Does Grails 2.3.x Support JDK 8
Support for Java 8 had been added since Grails 2.4.
试试JAVA1.7
我在尝试使用 "grails compile" 编译项目时遇到问题。我收到以下错误:
| Configuring classpath
| Error Error executing script Compile: startup failed:
_GrailsClasspath_groovy: 17: unable to resolve class
org.codehaus.groovy.grails.compiler.GrailsProjectCompiler
@ line 17, column 1.
我对 groovy/grails 很陌生,但我认为这是某处某些类路径的问题。但是,我在我的项目中找不到任何包含字符串 "GrailsProjectCompiler" 的文件。我尝试在 google 和 Whosebug 中搜索类似问题,但我发现的唯一一个 (http://grails.1312388.n4.nabble.com/Unable-to-resolve-class-org-codehaus-groovy-grails-compiler-GrailsProjectCompiler-td4641043.html) 对我不起作用。
有人对可能出现的问题有什么建议吗?
编辑:Grails 是 2.3 版,这是 Mac OS X El Capitan 运行 JDK 1.8
如问题所述:Does Grails 2.3.x Support JDK 8
Support for Java 8 had been added since Grails 2.4.
试试JAVA1.7