Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916850 - dev-db/mysql-workbench-8.0.34 needs a higher level of JDK
Summary: dev-db/mysql-workbench-8.0.34 needs a higher level of JDK
Status: RESOLVED DUPLICATE of bug 914052
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-04 13:48 UTC by Tanktalus
Modified: 2023-12-03 10:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tanktalus 2023-11-04 13:48:51 UTC
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.
Comment 1 Tanktalus 2023-11-04 22:21:18 UTC
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.
Comment 2 Hans de Graaff gentoo-dev Security 2023-12-03 10:39:29 UTC

*** This bug has been marked as a duplicate of bug 914052 ***