After updating to 2023.1.1 of Pycharm Community with bundled JDK it stopped working with this error: CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend Error occurred during initialization of VM java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 at java.lang.ClassLoader.defineClass1(java.base@11.0.10/Native Method) at java.lang.ClassLoader.defineClass(java.base@11.0.10/ClassLoader.java:1017) at java.security.SecureClassLoader.defineClass(java.base@11.0.10/SecureClassLoader.java:174) at jdk.internal.loader.BuiltinClassLoader.defineClass(java.base@11.0.10/BuiltinClassLoader.java:800) at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@11.0.10/BuiltinClassLoader.java:698) at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(java.base@11.0.10/BuiltinClassLoader.java:621) at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@11.0.10/BuiltinClassLoader.java:579) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@11.0.10/ClassLoaders.java:178) at java.lang.ClassLoader.loadClass(java.base@11.0.10/ClassLoader.java:522) at java.lang.Class.forName0(java.base@11.0.10/Native Method) at java.lang.Class.forName(java.base@11.0.10/Class.java:398) at java.lang.ClassLoader.initSystemClassLoader(java.base@11.0.10/ClassLoader.java:1976) at java.lang.System.initPhase3(java.base@11.0.10/System.java:2074) Is it shipped with the wrong JDK? Reproducible: Always Steps to Reproduce: 1. USE="bundled-jdk" emerge dev-util/pycharm-community 2. pycharm-community
Managed to fix this by removing dev-java/openjdk-bin. Not sure if this is supposed to work like this. Would have expected different when using USE="bundled-jdk". Using USE="-bundled-jdk" with suggested dev-java/openjdk-bin dependency gave me the same error. Looks like it does only work when not having any other JDK installed.
This is definitely not supposed to be so. Something's wrong.
This bug was fixed by upstream, and does not reproduce anymore with +bundled-jdk (their own runtime libs).
(In reply to r7l from comment #0) > [...] > Error occurred during initialization of VM > java.lang.UnsupportedClassVersionError: > com/intellij/util/lang/PathClassLoader has been compiled by a more recent > version of the Java Runtime (class file version 61.0), this version of the > Java Runtime only recognizes class file versions up to 55.0 > [...] 61.0 is Java 17 55.0 is Java 11 See https://javaalmanac.io/jdk/ You want to ensure running the correct system jdk, see https://wiki.gentoo.org/wiki/Java_Developer_Guide#JDK.2FJRE
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=094772508de6e03f6616b8cf4404d98eed9fa994 commit 094772508de6e03f6616b8cf4404d98eed9fa994 Author: Stefan Cristian B. <stefan.cristian+git@rogentos.ro> AuthorDate: 2025-02-17 09:40:31 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2025-02-17 18:03:24 +0000 dev-util/pycharm-community: version bump 2024.3.2 and bugfixes * On #876295, implemented the solution discussed with @thesamesam to strip debug symbols and relocate them in ${EPREFIX}/opt/${P}. JetBrains IDEs have almost identical .build-ids, causing conflicts To prevent the conflicts, we relocate debug symbols per package. The preferred method is stripping with objcopy and using debugedit to point to their new /usr/lib/debug/ location. * The #804453 SONAME correction was done earlier than 2024.3.1-r1. * Corrected the ful list of LICESNES as per #694270 bug * On #842270 port is still exposed The port can be closed with configuration by upstream. Referal: https://intellij-support.jetbrains.com Post name/link: 8125278285586-Internal-Local-ports-63342-6942 * The #907845 does not reproduce anymore. * The #804456 does not reproduce anymore. * The #804450 does not reproduce anymore. * The #804453 does not reproduce anymore. Bug: https://bugs.gentoo.org/842270 Closes: https://bugs.gentoo.org/907845 Closes: https://bugs.gentoo.org/694270 Closes: https://bugs.gentoo.org/804456 Closes: https://bugs.gentoo.org/804450 Closes: https://bugs.gentoo.org/804453 Closes: https://bugs.gentoo.org/949338 Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro> Closes: https://github.com/gentoo/gentoo/pull/40450 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> dev-util/pycharm-community/Manifest | 2 + .../pycharm-community-2024.3.2.ebuild | 203 +++++++++++++++++++++ 2 files changed, 205 insertions(+)