简体   繁体   English

在centos 6.5上的Webstorm

[英]Webstorm on centos 6.5

I've downloaded and extracted the tar file, but when I try to run the webstorm.sh file, I get the error: 我已经下载并解压缩了tar文件,但是当我尝试运行webstorm.sh文件时,出现错误:

"No JDK found. Please validate either WEBIDE_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.

I have Java installed: 我已经安装了Java:

[root@local.host]# java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (rhel-2.4.4.1.el6_5-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

[root@local.host]# ls -lah /etc/alternative/java
lrwxrwxrwx. 1 root root 46 Jan 27 23:06 /etc/alternatives/java -> /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java

I've also set the environment path, although I'm not 100% certain of it's correctness. 我还设置了环境路径,尽管我不确定100%是否正确。 Contents of .bash_profile: .bash_profile的内容:

PATH=$PATH:$HOME/bin

export PATH
export JDK_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin
export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin
export PATH=$PATH:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin

What am I missing/doing wrong? 我想念/做错了什么?

If you check the System Requirements and Installation page of WebStorm's website, you will see the following requirements for Linux... 如果查看WebStorm网站的“ 系统要求和安装”页面,将会看到Linux的以下要求...

System Requirements 系统要求

  • Intel Pentium III/800 MHz or higher (or compatible) 英特尔奔腾III / 800 MHz或更高(或兼容)
  • 512 MB RAM minimum, 1 GB RAM recommended 最低512 MB RAM,建议1 GB RAM
  • 1024x768 minimum screen resolution 最低1024x768屏幕分辨率
  • Oracle (Sun) JDK 1.6 or higher. Oracle(Sun)JDK 1.6或更高版本。 Open JDK is not supported. 不支持Open JDK。
  • GNOME or KDE desktop. GNOME或KDE桌面。

And as confirmed by your system... 并且由您的系统确认...

OpenJDK Runtime Environment (rhel-2.4.4.1.el6_5-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

This is why your WebStorm is complaining about a valid JDK installation . 这就是为什么您的WebStorm抱怨valid JDK installation

As cited in WebStorm's website, the article Swapping OpenJDK for Sun JDK on Ubuntu can be useful to you. 正如WebStorm网站上引用的, 在Ubuntu上为Sun JDK交换OpenJDK文章可能对您有用。

The Sun JDK and OpenJDK are contained within the same installer. Sun JDK和OpenJDK包含在同一安装程序中。 OpenJDK is used by default. 默认情况下使用OpenJDK。 After downloading and installing the JDK from the Oracle site, to specifically use Sun JDK, the following command must be run: 从Oracle站点下载并安装JDK之后,要专门使用Sun JDK,必须运行以下命令:

[root@local.host]# alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 200000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM