Skip to content

Commit 6b72cf2

Browse files
authored
Update editing_python_source.rst
1 parent 8f97de2 commit 6b72cf2

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

docs/source/preamble/python/editing_python_source.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,46 @@ Then, you can run :program:`PyCharm` with
4646
4747
.. info::
4848
We use :program:`pycharm_ros2` instead of :program:`pycharm` on purpose. This prevents our alias from misbehaving if you have another version of :program:`PyCharm` installed.
49+
50+
2024.09 Update
51+
--------------
52+
53+
.. note:
54+
This is a troubleshooting section. You do not need to cover this if you don't have problems with the previous section.
55+
56+
For consistency, until I upgrade this tutorial to the new version of ROS2, the version of :program:`pycharm` will remain the same. I have identified the following problem when running it on an `arm64` Ubuntu VM.
57+
58+
.. code :: console
59+
60+
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend
61+
Error occurred during initialization of VM
62+
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
63+
at java.lang.ClassLoader.defineClass1([email protected]/Native Method)
64+
at java.lang.ClassLoader.defineClass([email protected]/ClassLoader.java:1022)
65+
at java.security.SecureClassLoader.defineClass([email protected]/SecureClassLoader.java:174)
66+
at jdk.internal.loader.BuiltinClassLoader.defineClass([email protected]/BuiltinClassLoader.java:800)
67+
at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull([email protected]/BuiltinClassLoader.java:698)
68+
at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull([email protected]/BuiltinClassLoader.java:621)
69+
at jdk.internal.loader.BuiltinClassLoader.loadClass([email protected]/BuiltinClassLoader.java:579)
70+
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass([email protected]/ClassLoaders.java:178)
71+
at java.lang.ClassLoader.loadClass([email protected]/ClassLoader.java:527)
72+
at java.lang.Class.forName0([email protected]/Native Method)
73+
at java.lang.Class.forName([email protected]/Class.java:398)
74+
at java.lang.ClassLoader.initSystemClassLoader([email protected]/ClassLoader.java:1981)
75+
at java.lang.System.initPhase3([email protected]/System.java:2091)
76+
77+
My java version before updating is
78+
79+
.. code :: console
80+
81+
openjdk version "11.0.24" 2024-07-16
82+
OpenJDK Runtime Environment (build 11.0.24+8-post-Ubuntu-1ubuntu322.04)
83+
OpenJDK 64-Bit Server VM (build 11.0.24+8-post-Ubuntu-1ubuntu322.04, mixed mode)
84+
85+
86+
This can be solved by adding `java 17`, because that is what the `class file version 61.0` stands for. To install `java 17` we can run
87+
88+
.. code :: console
89+
90+
sudo apt install openjdk-17-jre
91+

0 commit comments

Comments
 (0)