The java requirements seem to be outdated Reproducible: Always Steps to Reproduce: 1. emerge =net-wireless/unifi-7.3.76 2. systemctl start unifi Actual Results: Nov 24 19:41:01 beast unifi[95362]: Error: A JNI error has occurred, please check your installation and try again Nov 24 19:41:01 beast unifi[95362]: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubnt/ace/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 Nov 24 19:41:01 beast unifi[95362]: at java.lang.ClassLoader.defineClass1(Native Method) Nov 24 19:41:01 beast unifi[95362]: at java.lang.ClassLoader.defineClass(ClassLoader.java:756) Nov 24 19:41:01 beast unifi[95362]: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) Nov 24 19:41:01 beast unifi[95362]: at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) Nov 24 19:41:01 beast unifi[95362]: at java.net.URLClassLoader.access$100(URLClassLoader.java:74) Nov 24 19:41:01 beast unifi[95362]: at java.net.URLClassLoader$1.run(URLClassLoader.java:369) Nov 24 19:41:01 beast unifi[95362]: at java.net.URLClassLoader$1.run(URLClassLoader.java:363) Nov 24 19:41:01 beast unifi[95362]: at java.security.AccessController.doPrivileged(Native Method) Nov 24 19:41:01 beast unifi[95362]: at java.net.URLClassLoader.findClass(URLClassLoader.java:362) Nov 24 19:41:01 beast unifi[95362]: at java.lang.ClassLoader.loadClass(ClassLoader.java:418) Nov 24 19:41:01 beast unifi[95362]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) Nov 24 19:41:01 beast unifi[95362]: at java.lang.ClassLoader.loadClass(ClassLoader.java:351) Nov 24 19:41:01 beast unifi[95362]: at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601) Nov 24 19:41:01 beast systemd[1]: unifi.service: Main process exited, code=exited, status=1/FAILURE Nov 24 19:41:01 beast systemd[1]: unifi.service: Failed with result 'exit-code'.
Tries to pull (running ~amd64): emerge unifi -pv These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-java/openjdk-bin-8.352_p08:8::gentoo USE="headless-awt -alsa -cups -examples (-selinux) -source" 0 KiB [ebuild N ] virtual/jdk-1.8.0-r6:1.8::gentoo USE="headless-awt" 0 KiB [ebuild N ] virtual/jre-1.8.0-r3:1.8::gentoo 0 KiB [ebuild R ] net-wireless/unifi-7.3.76:0/7.3::gentoo USE="systemd -system-mongodb" 0 KiB
I had the same. It should depend on virtual/jre:11 It's working with this patch: --- a 2022-11-24 13:46:11.582277111 +0100 +++ b 2022-11-24 20:19:45.082467302 +0100 @@ -23,7 +23,7 @@ acct-group/unifi acct-user/unifi dev-db/mongodb - virtual/jre:1.8 + virtual/jre:11 " BDEPEND="app-arch/unzip"
jre:11 isn't officially compatible (https://community.ui.com/releases/UniFi-Network-Application-7-2-95/7adebab5-8c41-4989-835d-ab60dba55255). Although they appear to be working on it judging by the wording. If it works for now in my opinion we should just push it to jre:11 and see where we end up.
Indeed, Java 11 seems to be now minimum. (In reply to Michiel Hazelhof from comment #3) > jre:11 isn't officially compatible > (https://community.ui.com/releases/UniFi-Network-Application-7-2-95/7adebab5- > 8c41-4989-835d-ab60dba55255). > Although they appear to be working on it judging by the wording. > > If it works for now in my opinion we should just push it to jre:11 and see > where we end up. Well, the message "[..] has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0" clearly says, that Java 8 is not supported. 55.0 = Java 11 52.0 = Java 8
(In reply to Michiel Hazelhof from comment #3) > jre:11 isn't officially compatible > (https://community.ui.com/releases/UniFi-Network-Application-7-2-95/7adebab5- > 8c41-4989-835d-ab60dba55255). > Although they appear to be working on it judging by the wording. > > If it works for now in my opinion we should just push it to jre:11 and see > where we end up. Wrong version :-) 7.2.x indeed does use Java 8, but 7.3.x not: https://community.ui.com/releases/UniFi-Network-Application-7-3-76/85c75fc7-3e0f-4e99-aa90-7068af4f1141
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204c1a619085aa05d43734227882b25df27e413a commit 204c1a619085aa05d43734227882b25df27e413a Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2022-11-25 08:59:59 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2022-11-25 09:01:17 +0000 net-wireless/unifi: switch to java 11 Starting with release 7.3.x, Java 11 is now minimum requirement for runtime. Closes: https://bugs.gentoo.org/882803 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> net-wireless/unifi/{unifi-7.3.76.ebuild => unifi-7.3.76-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)