Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't run/compile from source, couldn't find jdk version error #1273

Open
DoomSlinger opened this issue Dec 22, 2024 · 2 comments
Open

Won't run/compile from source, couldn't find jdk version error #1273

DoomSlinger opened this issue Dec 22, 2024 · 2 comments

Comments

@DoomSlinger
Copy link

DoomSlinger commented Dec 22, 2024

Tried building from source, got this error when running ./gradlew run:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':server:android'.
> Failed to calculate the value of task ':server:android:compileDebugJavaWithJavac' property 'javaCompiler'.
   > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any vendor, implementation=vendor-specific} for LINUX 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.10.1/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.10.1/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.10.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 378ms

Same issue occurs when installing from the AUR: https://aur.archlinux.org/packages/slimevr-server-git

@ImUrX
Copy link
Member

ImUrX commented Dec 22, 2024

What happens if you just do ./gradlew :server:desktop:run

anyways not enough context, seems like gradle can’t find a compatible java version to build with :p

@DoomSlinger
Copy link
Author

DoomSlinger commented Dec 22, 2024

What happens if you just do ./gradlew :server:desktop:run

anyways not enough context, seems like gradle can’t find a compatible java version to build with :p

Same error occurs when I use that command. Not sure why it thinks java isn't installed. Is there a way for me to get more context? This is the only thing the terminal says when I run that command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants