LoginSignup
0
0

DOMAのはじめようを実行したときに出会ったエラー

Posted at

DOMA

実行したコマンド

.bat
git clone https://github.com/domaframework/getting-started.git
cd getting-started
gradlew build
gradlew eclipse

gradlew build実行時に出たエラー

FAILURE: Build failed with an exception.
 * What went wrong:
 Could not determine the dependencies of task ':java-17:distTar'.
 > Could not resolve all dependencies for configuration ':java-17:runtimeClasspath'.
  > Failed to calculate the value of task ':java-17:compileJava' property 'javaCompiler'.
  > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
  > No locally installed toolchains match and toolchain download repositories have not been configured.
 
 * Try:
 > Learn more about toolchain auto-detection at https://docs.gradle.org/8.7/userguide/toolchains.html#sec:auto_detection.
 > Learn more about toolchain repositories at https://docs.gradle.org/8.7/userguide/toolchains.html#sub:download_repositories.
 > Run with --stacktrace option to get the stack trace.
 > Run with --info or --debug option to get more log output.
 > Run with --scan to get full insights.
 > Get more help at https://help.gradle.org.
 
 Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
 
 You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
 
 For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
 
 BUILD FAILED in 38s

JDK 17をダウンロードしてJAVA_HOMEとPATHを通して解決。

gradlew eclipse 実行後eclipseを開いた後に出たエラー

org.eclipse.buildship.core.GradlePluginsRuntimeException: Cannot read Gradle configuration for project java-8.
at org.eclipse.buildship.core.configuration.internal.ProjectConfigurationPersistence.readProjectConfiguration(ProjectConfigurationPersistence.java:135)
at org.eclipse.buildship.core.configuration.internal.DefaultProjectConfigurationManager.readProjectConfiguration(DefaultProjectConfigurationManager.java:101)
at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectsJob$3.apply(SynchronizeGradleProjectsJob.java:99)
at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectsJob$3.apply(SynchronizeGradleProjectsJob.java:95)
at com.google.common.collect.Iterators$8.transform(Iterators.java:794)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:317)
at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
at com.google.common.collect.FluentIterable.toSet(FluentIterable.java:358)
at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectsJob.getUniqueRootAttributes(SynchronizeGradleProjectsJob.java:95)
at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectsJob.scheduleSynchronizeJobs(SynchronizeGradleProjectsJob.java:63)
at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectsJob.access$000(SynchronizeGradleProjectsJob.java:40)
at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectsJob$1.run(SynchronizeGradleProjectsJob.java:55)
at org.eclipse.buildship.core.util.progress.ToolingApiInvoker.invoke(ToolingApiInvoker.java:54)
at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectsJob.run(SynchronizeGradleProjectsJob.java:52)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.core.internal.resources.ResourceException: リソース '/java-8/.settings/gradle.prefs' が存在しません。
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:334)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:208)
at org.eclipse.core.internal.resources.File.getContents(File.java:267)
at org.eclipse.buildship.core.configuration.internal.ProjectConfigurationPersistence.readProjectConfiguration(ProjectConfigurationPersistence.java:122)
... 15 more

利用していたEclipseが古いバージョンだったので、Eclipse 4.23.0を利用して解決

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0