Works!!!
- sudo pacman -S java-21-openjdk
- archlinux-java unset
- sudo archlinux-java set java-21-openjdk
- (check): sudo archlinux-java status
- yay -S haveno-reto
Git Clone URL: | https://aur.archlinux.org/haveno-reto.git (read-only, click to copy) |
---|---|
Package Base: | haveno-reto |
Description: | Decentralised P2P exchange built on Monero and Tor - unofficial Reto network |
Upstream URL: | https://github.com/retoaccess1/haveno-reto |
Licenses: | AGPL-3.0-or-later |
Conflicts: | haveno |
Submitter: | dujemiha |
Maintainer: | dujemiha |
Last Packager: | dujemiha |
Votes: | 0 |
Popularity: | 0.000000 |
First Submitted: | 2024-05-30 08:41 (UTC) |
Last Updated: | 2024-06-16 13:13 (UTC) |
Works!!!
Package now depends strictly on JDK 21 for compiling.
If anyone continues to experience build errors, make sure the default JDK is set to any variant of JDK 21 in archlinux-java
. I considered forcibly setting JAVA_HOME
to OpenJDK 21 in the PKGBUILD, but this can't be done due to the wide variety of JDKs available in the AUR.
Gradle being in use is not compatible with java-22. For make at least, dependency should be java-environment=21
.
Available Java environments: java-11-openjdk java-22-openjdk (default)
But the error continue:
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
What went wrong: Could not open settings generic class cache for settings file '/home/X/.cache/yay/haveno-reto/src/haveno-reto-1.0.7/settings.gradle' (/home/X/.gradle/caches/8.6/scripts/2ii5klxjjq1d8e574diplcyy2).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 66
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 8s ==> ERROR: A failure occurred in build(). Aborting... -> error making: haveno-reto-exit status 4 -> Failed to install the following packages. Manual intervention is required:
This is quite odd, the package is specifically supposed to depend on JRE/JDK 21 or newer, yet it seems like any JDK version satisfies that requirement. I'll have to ask someone with more knowledge on the topic about this at some point.
I ran into the same build failure, running "archlinux-java status" in the terminal said I only have java-11-openjdk installed as it was set as the default.
Installed jdk21-openjdk and then ran "sudo archlinux-java set java-21-openjdk" as the default and then ran the project again successfully.
Hope this helps!
Is your current JDK set to 21 or newer? Check with the archlinux-java script.
Fail to build:
FAILURE: Build failed with an exception.
What went wrong: Could not open settings generic class cache for settings file '/home/X/.cache/yay/haveno-reto/src/haveno-reto-1.0.7/settings.gradle' (/home/X/.gradle/caches/8.6/scripts/2ii5klxjjq1d8e574diplcyy2).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 66
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 1s ==> ERROR: A failure occurred in build(). Aborting... -> error making: haveno-reto-exit status 4 -> Failed to install the following packages. Manual intervention is required: haveno-reto - exit status 4
Pinned Comments
dujemiha commented on 2024-06-16 13:15 (UTC)
Package now depends strictly on JDK 21 for compiling.
If anyone continues to experience build errors, make sure the default JDK is set to any variant of JDK 21 in
archlinux-java
. I considered forcibly settingJAVA_HOME
to OpenJDK 21 in the PKGBUILD, but this can't be done due to the wide variety of JDKs available in the AUR.