Error starting pycharm on Power8 machine running RHEL Enterprise 7.5
I've installed the latest version of pycharm (2021.2) community edn. - the machine I need to run on is a Power8 box running RHEL Enterprise 7.5
When I run the pycharm executable, I get this error:
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 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:468)
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 java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2202)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2188)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1449)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1429)
-> the java version on the machine is shown below:
which java
/etc/alternatives/java_sdk/bin/java
java -version
openjdk version "1.8.0_302"
OpenJDK Runtime Environment (build 1.8.0_302-b08)
OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode)
=> As another data point .. I have access to an x86 machine, also running RHEL Enterprise 7.5
When I try and run on that machine, the pycharm GUI does come up (but with warnings).
The odd thing there is, that x86 box has the exact same version of Java as the ppc machine mentioned earlier.
Please let me know how to fix this .... hopefully I can get this running on the Power8 / ppc Linux box.
thanks in advance,
Craig
Please sign in to leave a comment.
Our IDEs require Java 11 to run, see https://intellij-support.jetbrains.com/hc/en-us/articles/206544879.
Thanks, I will look into that.
It still is strange though that the x86 machine, running the exact same version of RHEL and java, ran the pycham IDE just fine.
Definitely something unique to the ppc machine in this case. Hopefully, I can get the JDK version updated to 11 on that ppc box and that will fix it.
One more question based on the info you provided above (the URL).. for Linux, it says:
"Starting from IntelliJ IDEA 2016 and the most recent versions of the lightweight IDEs, we are bundling custom JRE (JetBrains Runtime) with Linux distributions, just like we've been doing for Mac. Our custom JRE is based on OpenJDK and includes the most up to date fixes to provide better user experience on Linux (like font rendering improvements and HiDPI support)."
So, I modified the pycharm.sh script to force using the bundled JRE location .... this is on the ppc platform I talked about (Power8 - where the OS_ARCH var. is: ppc64le )
- as expected, I get an immediate error on the java exec -> "cannot execute binary file"
Since of course, the default bundled custom JRE is compiled for the x86 platform.
Question ... can I get that same custom JRE compiled for ppc64le from the JetBrains website? That would be great if it was available somewhere so I could get it and just replace the current <pycharm_install_dir>/jbr/ path with the one compiled for ppc64le.
Let me know, thanks,
Craig
We do not support this architecture, sorry.
Thanks for the info. One question though... when you say you don't support PPC (ppc64le) -- does that mean you don't support it for the custom JRE (only) ... or, do you mean you don't support PPC at all (ie, you can't run pycharm on the ppc64le platform at all)?
I hope it is the former ... and that, if I get J11 installed on that ppc machine, I will be able to run pycharm (and the IDE) on there...
thanks in advance for the help
Craig
If you can find any working Java 11 for your platform, you should be able using PyCharm, but some features will not work (like the native file watcher and other features that depend on the native binaries for the supported platform).
OK, thanks for the info. I'll try and get J11 installed on that machine and see how it works. It may suffice.