I cannont open Pycharm on Majanro Linux

I am running Manjaro Linux.

After installing pycharm via Pamac, I run pycharm on the console and I get the error below and pycharm doesn't open:

 

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.ide.ClassUtilCore to field sun.net.www.protocol.jar.JarFileFactory.fileCache
WARNING: Please consider reporting this to the maintainers of com.intellij.ide.ClassUtilCore
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Start Failed: Internal error. Please report to http://jb.gg/ide/critical-startup-errors

com.intellij.ide.plugins.PluginManager$StartupAbortedException: java.lang.reflect.InvocationTargetException
at com.intellij.ide.plugins.PluginManager.lambda$start$0(PluginManager.java:78)
at java.base/java.lang.Thread.run(Thread.java:835)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.intellij.ide.plugins.PluginManager.lambda$start$0(PluginManager.java:75)
... 1 more
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-12-openjdk/lib/libawt_xawt.so
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2620)
at java.base/java.lang.Runtime.load0(Runtime.java:765)
at java.base/java.lang.System.load(System.java:1866)
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2638)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827)
at java.base/java.lang.System.loadLibrary(System.java:1902)
at java.desktop/java.awt.Toolkit$3.run(Toolkit.java:1395)
at java.desktop/java.awt.Toolkit$3.run(Toolkit.java:1393)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:310)
at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1392)
at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1425)
at com.intellij.ui.AppUIUtil.updateFrameClass(AppUIUtil.java:161)
at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:94)
at com.intellij.idea.MainImpl.start(MainImpl.java:20)
... 6 more

Also, an UI exception occurred on attempt to show above message:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
at java.desktop/java.awt.Component.<clinit>(Component.java:621)
at com.intellij.idea.Main.showMessage(Main.java:158)
at com.intellij.idea.Main.showMessage(Main.java:134)
at com.intellij.ide.plugins.PluginManager.processException(PluginManager.java:140)
at com.intellij.ide.plugins.PluginManager$1.uncaughtException(PluginManager.java:63)

 

Also, I tried to open from the menu of Manjaro and it doesn't work. I also tried to create a desktop link with "/usr/share/pycharm/bin/pycharm.sh" %f but it didn't work

 

The files are located on:

 

/usr/bin/pycharm
/usr/share/applications/pycharm.desktop

/usr/share/pycharm/bin/pycharm.sh

 

 

 

 

0
2 comments

Serge Baranov

What happend if after intalling Pycharm in Manjaro Linux,  .<PRODUCT><VERSION> this directory doesn't exist?. In my home directory there is not any folder for Pycharm. There is only a folder for Datagrip (/home/lwbaqueros/.DataGrip2019.2/) and datagrip works properly. I tried to open Pychar bur it doesn't work. When I open the file ide.properties - which is in the folder (/usr/share/pycharm/bin/) - there is an option to customaize the directorie:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.PyCharmCE/config

 

However, I do not find the directory config neither system. I can find only the directory plugiins (/usr/share/pycharm/plugins/) -as you can see the folder plugins is not into the config directory

Do I have to put that directory here?:

# idea.plugins.path=${idea.config.path}/plugins

 

I tried changing this directory and nothing happend, but the ptoblem I think it is related that thre is not config and system folder for the Pycharm

0

I solved this issue using another package manager. I uninstall the pycharm with Pacman (Octopi) and then I used Snap (manager package from canonical that runs over several linux distributions) with the following commands:

$ sudo pacman -S snapd
$ sudo systemctl enable --now snapd.socket
$ sudo snap install pycharm-professional --classic

I leave the link to Snap

https://snapcraft.io/

Thank you all

0

Please sign in to leave a comment.