void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

Pycharm Community Edition has Linkage Errors that have to do with Java

Open CoutHi opened this issue 2 years ago • 4 comments

Is this a new report?

Yes

System Info

Void 6.11.0_1 x86_64 AuthenticAMD uptodate rrrmmnFFFF

Package(s) Affected

pycharm-community-2024.2.1_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

It's supposed the launch the pycharm community edition

Actual behaviour

when you run it, it exits with the following error: Error: LinkageError occurred while loading main class com.intellij.idea.Main java.lang.UnsupportedClassVersionError: com/intellij/idea/Main 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

Steps to reproduce

  1. Install the package
  2. Run it

CoutHi avatar Sep 25 '24 15:09 CoutHi

Does this fix solve your problem? https://github.com/void-linux/void-packages/issues/52122#issue-2508232649

Eloitor avatar Sep 25 '24 18:09 Eloitor

Ah it does, sorry for not looking deep enough. Although what I did was installing openjdk21 and adjusting the version with xbps-alternatives, same thing at the end.

CoutHi avatar Sep 25 '24 18:09 CoutHi

@Eloitor did you even test #52060 (created on Sep 2)? judging by #52122 (merged on Sep 5), you didn't.

java.lang.UnsupportedClassVersionError: com/intellij/idea/Main 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

openjdk11 is too old for pycharm-community, it requires at least openjdk17.

chrysos349 avatar Sep 25 '24 18:09 chrysos349

I did, but I fixed the openjdk issue "manually". I thought "virtual?java-environment" mean I don't have to deal with version number...

Eloitor avatar Sep 25 '24 19:09 Eloitor