Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

pycharm can't find python

Writer Andrew Henderson

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?

3

3 Answers

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:

1

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy