gpt4 book ai didi

grails - 启动Grails 3.3.8应用程序时无法从 '10.0.2'确定Java版本

转载 作者:行者123 更新时间:2023-12-02 13:50:23 24 4
gpt4 key购买 nike

我刚刚安装了Grails 3.3.8,但是当我尝试运行示例应用程序时,出现以下错误:

Error |
Error initializing classpath: Could not determine java version from '10.0.2'.
java.lang.IllegalArgumentException: Could not determine java version from '10.0.2'.
at org.gradle.api.JavaVersion.toVersion(JavaVersion.java:68)
at org.gradle.api.JavaVersion.current(JavaVersion.java:78)
at org.gradle.internal.jvm.UnsupportedJavaRuntimeException.assertUsingVersion(UnsupportedJavaRuntimeException.java:29)
at org.gradle.tooling.internal.consumer.ConnectorServices.checkJavaVersion(ConnectorServices.java:66)
at org.gradle.tooling.internal.consumer.ConnectorServices.close(ConnectorServices.java:53)
at org.gradle.tooling.internal.consumer.DefaultGradleConnector.close(DefaultGradleConnector.java:57)
at org.grails.cli.gradle.cache.CachedGradleOperation.call(CachedGradleOperation.groovy:78)
at org.grails.cli.GrailsCli.populateContextLoader(GrailsCli.groovy:526)
at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:509)
at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:307)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:270)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)

Error |
Error initializing classpath: Could not determine java version from '10.0.2'.

Process finished with exit code 1

我的Java版本是2018年7月17日的Java版本“10.0.2”,Windows 10 64位,JAVA_HOME已经设置并使用intellj

最佳答案

Grails 3.3.8不支持Java10。如果要使用Grails 3.3.8,则必须使用Java 7或Java 8。

关于grails - 启动Grails 3.3.8应用程序时无法从 '10.0.2'确定Java版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52381210/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com