Cannot Start Pycharm Professional?

Here are my system setting:

64bit Ubuntu 16.04 LTS

Note that I was able to use Pycharm Pro before in my first installation. However I used GParted to resize my partitions and now Pycharm cannot be opened for some obscure reasons. 

When I clicked on the icon on the favorite bar, it just flashes but there are no start up graphic box, a few moments later it closes itself.

I tried to uninstall by using the snap store. After that I believe there are still remnants of Pycharm file laying around, as a result when I re-downloaded Pycharm professional I found the following error when I tried to reinstall:

Please advise how I could get Pycharm Professional to work again?

Thanks.

7 comments
Comment actions Permalink

Please do a clean reinstall, make sure to delete configuration and installation folders.

Refer to https://intellij-support.jetbrains.com/hc/en-us/articles/206544519

0
Comment actions Permalink

After removing the folder .Pycharm2019.2 which is a hidden folder in the home directory containing the config and system folders. I attempted to reinstall, however now I got the following errors:

Please advise. Thanks.

0
Comment actions Permalink

I suspect that PyCharm is trying to start using non-bundled JDK. There should be a folder called `jre64` or `jbr` containing a build of JDK which must be used to run PyCharm. You can make sure that correct JDK is selected using this guide: https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under

I understand it might be cumbersome, but there's likely some changes been made to your system which cause PyCharm to start with different JDK.

Try it, let me know if there's any issues.

0
Comment actions Permalink

I'm still not very sure about the instruction given as for the Linux system as it says mainly to check the version of the JDK. It seems this can be achieved by modifying the Pycharm.sh file, however I am not very sure as there are not specific set of instruction I can follow.

I found the /jbr file however I'm not sure which one actually contain a build of JDK. The screenshots are provided as follows: So within the Download Folder is a new copy of PycharmPRo2019.2. 

This is within the jbr folder:

This is the bin folder within jbr, I am unsure which one is related to JDK build and what I should do from then on?

I also cannot find a .jdk file within the downloaded PyCharm2019.2, please advise? If possible provide some screenshots so I can better follow your suggestion. Thanks. 

0
Comment actions Permalink

That's correct, jbr/bin/java is our custom JDK build which should be used to run PyCharm. Sometime another JDK in your system might be selected which might cause the OP issue.

Try setting PYCHARM_JDK or JAVA_HOME env variables pointing to that jbr folder (use absolute path). Then run PyCharm using pycharm.sh. Does it work?

0
Comment actions Permalink

Are you talking about changing the PYCHARM_JDK or JAVA_HOME env inside the pycharm.sh script file? It seemed it's already pointing to the right location?

0
Comment actions Permalink

No, I mean set the values for those env variables in your terminal session and then run PyCharm from this session. If it works, you can set those variables globally.

0

Please sign in to leave a comment.