java 无法启动pycharm

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27625777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 12:08:46  来源:igfitidea点击:

Cannot start pycharm

javapythonpycharm

提问by sanforyou

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 pycharmit Initially gave me below error

我正在尝试将 pycharm 4.0.3(社区版)与 red hat 6.3 一起使用。我从 pycharm 网站下载了 Linux 版本并将其解压缩到我的 Linux 机器上。当我运行pycharm它时最初给了我以下错误

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)

然后我在 ~/.cshrc 中添加了以下两行(我正在使用 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 pycharmit doesn't do anything and I get the control back on command prompt. Any suggestions what I am missing here?

我验证了 Java 位置是正确的,但是现在当我运行pycharm它时它什么也没做,我在命令提示符下重新获得控制权。我在这里缺少的任何建议?

回答by arunjos007

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

要运行 PyCharm,您需要安装 Oracle Java。使用以下命令安装 Oracle Java。

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.shfile in the bin folder.

成功执行上述命令后,您可以运行pycharm.shbin 文件夹中的文件。

回答by subramanya46

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

我也有同样的问题要解决这个问题首先你需要安装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

下面链接 java sdk 32 位版本 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

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