我无法运行grails 4.0.1命令行来创建新应用等

我的环境:

  • Windows 10
  • Java 11.0.5 JDK
  • Grails 4.0.1
  • Groovy v3.0.0-rc-1

  • 设置JAVA_HOME(D:\\ Program Files \\ Java \\ jdk-11.0.5)

  • GRAILS_HOME设置(D:\\ dev-binaries \\ grails \\ grails-4.0.1)
  • GROOVY_HOME设置(D:\\ dev-binaries \\ groovy \\ groovy-3.0.0-rc-1)

当我启动命令行并尝试启动grails shell时,我得到了(忽略Java 11反射警告)

| Error Error occurred running Grails CLI: null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.NullPointerException         at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:515)         at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:306)         at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:269)         at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159) | Error Error occurred running Grails CLI: null 

所以现在我被卡住了-我无法安装grails外壳,也无法运行'create-app'脚本

grails -version似乎只能工作,并在命令行上报告

| Grails Version: 4.0.1 | JVM Version: 11.0.5 

我该如何解决? 如果可以避免的话,我宁愿不必还原所有版本。

未解决问题?本站智能推荐: