问题
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. Any suggestions what I am missing here?
回答1:
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.
回答2:
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
来源:https://stackoverflow.com/questions/27625777/cannot-start-pycharm