Gaming32 / world-host-server-kotlin

MIT License
4 stars 1 forks source link

Can't Build Jar #6

Closed RRyankees08 closed 2 months ago

RRyankees08 commented 2 months ago
Build file 'C:\Users\twinr\Downloads\world-host-server-kotlin-main\world-host-server-kotlin-main\build.gradle.kts' line: 74

Could not create task ':fatJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Failed to calculate the value of task ':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.8/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.8/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.
BUILD FAILED in 248ms

Get that error when trying to build in InteliJ with SDK 17 chosen. I also tried just running the gradelw bat file but also couldn't get it to build that way.

Gaming32 commented 2 months ago

Maybe your Java installation comes from IntelliJ, and Gradle can't find it. I'll try to setup Gradle to automatically download compatible Java.