@ybenel you need OpenJDK 17 or higher. You can set the java version with the archlinux-java command if you have one of them installed. You probably want jdk-openjdk or jdk17-openjdk.
If someone has a better solution, please let me know.
Git Clone URL: | https://aur.archlinux.org/i2p.git (read-only, click to copy) |
---|---|
Package Base: | i2p |
Description: | A distributed anonymous network |
Upstream URL: | https://geti2p.net |
Keywords: | anonymous censorship encrypted i2p network |
Licenses: | GPL2 |
Conflicts: | i2p-bin, i2p-dev |
Submitter: | Mikos |
Maintainer: | Salama |
Last Packager: | Salama |
Votes: | 315 |
Popularity: | 0.103596 |
First Submitted: | 2005-09-04 19:46 (UTC) |
Last Updated: | 2023-12-19 18:51 (UTC) |
@ybenel you need OpenJDK 17 or higher. You can set the java version with the archlinux-java command if you have one of them installed. You probably want jdk-openjdk or jdk17-openjdk.
If someone has a better solution, please let me know.
Some is wrong with this PGKBUILD its not not building correctly.
compile:
[mkdir] Created dir: /home/ybenel/.cache/yay/i2p/src/i2p-2.3.0/core/java/build
[mkdir] Created dir: /home/ybenel/.cache/yay/i2p/src/i2p-2.3.0/core/java/build/obj
[javac] Compiling 419 source files to /home/ybenel/.cache/yay/i2p/src/i2p-2.3.0/core/java/build/obj
[javac] Ignoring source, target and bootclasspath as release has been set
[javac] error: release version 17 not supported
[javac] Usage: javac <options> <source files>
[javac] use --help for a list of possible options
BUILD FAILED
/home/ybenel/.cache/yay/i2p/src/i2p-2.3.0/build.xml:420: The following error occurred while executing this line:
/home/ybenel/.cache/yay/i2p/src/i2p-2.3.0/core/java/build.xml:75: Compile failed; see the compiler error output for details.
Total time: 2 seconds
==> ERROR: A failure occurred in build().
Aborting...
-> error making: i2p-exit status 4
-> Failed to install the following packages. Manual intervention is required:
i2p - exit status 4
You can download the key from https://geti2p.net/_static/idk.key.asc and gpg --import
thanks, added
I would like to be added to maintainers list
If anyone would like to be added to maintainers list, leave a message here
/home/user/.cache/yay/java-service-wrapper/src/wrapper_3.5.51_src/build.xml:801: The following error occurred while executing this line:
/home/user/.cache/yay/java-service-wrapper/src/wrapper_3.5.51_src/build.xml:611: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-8-openjdk/jre"
installing jdk helps, but it should be automated imo
@skydrome Thanks, removed jre17-openjdk, jre17-openjdk-common and i2p installed the current jre-openjdk and jre-openjdk-common, Rebuild i2p. Tried to run it. Got the same error.
Tried sudo archlinux-java fix
Tried starting i2p again. And it worked fine. Thanks for that. I'll definitely have to make a note of that command in case of such occurrences in the future.
Pinned Comments
Salama commented on 2023-04-01 09:18 (UTC)
You can download the key from https://geti2p.net/_static/idk.key.asc and
gpg --import