Cannot start pycharm

99封情书 提交于 2021-01-28 12:56:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!