When I try to run pycharm it shows this error:

ERROR: Cannot start PyCharm
No JDK found. Please validate either PYCHARM_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.

I typed python into my terminal and it shows that I have python 3.4 installed, but pycharm cant access it.

How can I fix this?

  • Please post the exact error messages.
    – Jan
    Sep 5, 2014 at 21:28
  • which error messages? Sep 5, 2014 at 21:30
  • What pycharm tells you that makes you think you need the "python jdk"
    – Jan
    Sep 5, 2014 at 21:31

3 Answers 3


The problem is not with Python. JDK stands for Java Development Kit, which PyCharm need in order to run.

Try this link to install the Open JDK:


  • Thanks that worked! The Ubuntu community is really amazing! Sep 5, 2014 at 22:27

I had the same issue today and the selected answer above did not help. This is what I did to resolve mine.

I installed pycharm via getdeb repository so my installation folder is located at: /usr/share/pycharm. In order to fix this issue steps are:

  1. sudo gedit or sudo xed /usr/share/pycharm/bin/pycharm.sh
  2. find Line: JDK=`update-alternatives --list java | grep java-8 | sed 's,jre/bin/java,,' and replace it with JDK = '/usr/lib/jvm/java-8-oracle/' or JDK = '/usr/lib/jvm/java-8-openjdk-amd64/' if you're using openjdk.
  3. Save and exit, then try running pycharms again. You should be good to go.

No JDK found means that it can't find Java on your machine. So check if Java is installed--if not, install it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .