sanforyou
sanforyou

Reputation: 455

Getting ERROR: Cannot start PyCharm No JDK found

I am trying to use PyCharm 4.0.3 (community version) with Red Hat 6.3. I downloaded Linux version from PyCharm website and extracted it on my Linux machine. When I ran PyCharm it initially gave me below 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.

Then I added below two lines in my ~/.cshrc (I am using tcsh)

setenv JAVA_HOME /tools/jre1.6.0
setenv PATH ${PATH}:${JAVA_HOME}/bin

I verified that Java location is correct but now when I run PyCharm it doesn't do anything and I get the control back on command prompt.

Upvotes: 1

Views: 15271

Answers (2)

subramanya46
subramanya46

Reputation: 481

I also had the same problem To solve this problem First you need to install java jdk 1.8

Below link java sdk 32 bit version http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-i586.tar.gz

For 64 bit http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz

Upvotes: 0

arunjos007
arunjos007

Reputation: 4355

For running PyCharm you need to install Oracle Java. Install Oracle Java with the following commands.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

After successful execution of above commands you can run pycharm.sh file in the bin folder.

Upvotes: 4

Related Questions