gpt4 book ai didi

java - Windows 7 Grails 安装

转载 作者:行者123 更新时间:2023-11-29 08:07:45 25 4
gpt4 key购买 nike

我是第一次使用 Groovy & Grails,在让本地 Windows 7 环境接受 bin 路径的正确位置时遇到了问题。好吧,至少我认为是在遵循 www.grails.org\Installation 之后。

这是提示反馈显示的内容:

C:\Groovy Grails\grails-1.3.7>gradlew

ERROR: JAVA_HOME might be set to an invalid directory: C:\Program Files\Java\jdk
1.7.0_03\bin;

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation if there are problems.

系统找不到指定的路径。

有什么关于开始使用 grails 的建议吗?

最佳答案

去掉/bin,直接使用:C:\Program Files\Java\jdk 1.7.0_03

从未尝试构建 grails。这里发生了什么:

R:\dev\grails-2.0.1>gradlew --stacktrace

FAILURE: Build failed with an exception.

* Where:
Script 'R:\dev\grails-2.0.1\gradle\assemble.gradle' line: 56

* What went wrong:
A problem occurred evaluating script.
Cause: Could not find property 'org' on root project 'grails-2.0.1'.

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating script.
at org.gradle.groovy.scripts.DefaultScriptRunnerFactory$ScriptRunnerImpl
.run(DefaultScriptRunnerFactory.java:51)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.
apply(DefaultScriptPluginFactory.java:127)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.appl
yScript(DefaultObjectConfigurationAction.java:82)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.acce
ss$000(DefaultObjectConfigurationAction.java:32)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$1.ru
n(DefaultObjectConfigurationAction.java:54)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.exec
ute(DefaultObjectConfigurationAction.java:114)
at org.gradle.api.internal.project.AbstractProject.apply(AbstractProject
.java:847)
at org.gradle.api.Project$apply$0.call(Unknown Source)
at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.gro
ovy:31)
at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
at build_7hj6n9uur9rg08bs08d0m02icl.run(R:\dev\grails-2.0.1\build.gradle
:245)
at org.gradle.groovy.scripts.DefaultScriptRunnerFactory$ScriptRunnerImpl
.run(DefaultScriptRunnerFactory.java:49)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.
apply(DefaultScriptPluginFactory.java:127)
at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptPro
cessor.java:38)
at org.gradle.configuration.DefaultProjectEvaluator.evaluate(DefaultProj
ectEvaluator.java:38)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
ect.java:487)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
ect.java:71)
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectE
valuationConfigurer.java:23)
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectE
valuationConfigurer.java:21)
at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuil
dConfigurer.java:38)
at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuil
dConfigurer.java:35)
at org.gradle.api.internal.project.AbstractProject.configure(AbstractPro
ject.java:463)
at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractP
roject.java:458)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuil
dConfigurer.java:35)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:141)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:112)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:80)
at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41)
at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27)
at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReporti
ngAction.java:32)
at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReporti
ngAction.java:21)
at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execut
e(CommandLineActionFactory.java:219)
at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execut
e(CommandLineActionFactory.java:203)
at org.gradle.launcher.Main.execute(Main.java:55)
at org.gradle.launcher.Main.main(Main.java:40)
at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:
46)
at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
va:33)
at org.gradle.wrapper.Wrapper.execute(Wrapper.java:87)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:37)
Caused by: groovy.lang.MissingPropertyException: Could not find property 'org' o
n root project 'grails-2.0.1'.
at org.gradle.api.internal.AbstractDynamicObject.propertyMissingExceptio
n(AbstractDynamicObject.java:43)
at org.gradle.api.internal.AbstractDynamicObject.getProperty(AbstractDyn
amicObject.java:35)
at org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeD
ynamicObject.java:54)
at org.gradle.api.internal.project.DefaultProject_Decorated.getProperty(
Unknown Source)
at org.gradle.groovy.scripts.BasicScript.propertyMissing(BasicScript.gro
ovy:59)
at assemble_2be0amk65dsfi1le6c3b1ao87h.run(R:\dev\grails-2.0.1\gradle\as
semble.gradle:56)
at org.gradle.groovy.scripts.DefaultScriptRunnerFactory$ScriptRunnerImpl
.run(DefaultScriptRunnerFactory.java:49)
... 40 more


BUILD FAILED

Total time: 3.287 secs

R:\dev\grails-2.0.1>

关于java - Windows 7 Grails 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9952826/

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