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

Outdated Java-Version in Building-Instroctions for Fedora in README.md #19

Open
Lytjoe opened this issue Apr 16, 2023 · 1 comment
Open

Comments

@Lytjoe
Copy link

Lytjoe commented Apr 16, 2023

I just built the library on my fedora machine. I tried to follow your instructions step by step, but I got the following error after I executed the make command:

FAILURE: Build failed with an exception.

* Where:
Build file '.../libdecsync/build.gradle' line: 15

* What went wrong:
A problem occurred evaluating root project 'libdecsync'.
> Failed to apply plugin 'com.android.internal.library'.
   > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
     Your current JDK is located in  /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b09-2.fc37.x86_64/jre
     You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.

* Try:
> 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 682ms

After installing a newer version of Java with yum (sudo yum install java-17-openjdk) it seemed to work.

@arpsoid
Copy link

arpsoid commented Jun 12, 2024

Agree. On Ubuntu 24.04 the compile is working well using the following command (if the appropriate openjdk is installed)
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 make

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