During compilation, the following error message appears: Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: org/antlr/v4/Tool has been compiled by a more recent 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 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621) # eselect java-vm list Available Java Virtual Machines: [1] openjdk-bin-8 system-vm [2] openjdk-bin-17 Switching to -17 allows this to work. I am building off the liveCD still, have not yet rebooted during initial deployment of new hardware.
At the time of this bug report, the versions of jdk installed are: [I] dev-java/openjdk-bin Available versions: (8) 8.382_p05^s (11) 11.0.20.1_p1 (17) 17.0.8.1_p1 (21) ~21.0.1_p12 and I have 8 and 17 installed.
*** This bug has been marked as a duplicate of bug 914052 ***