`
刘朝雪
  • 浏览: 83622 次
  • 来自: 河北
社区版块
存档分类
最新评论

配置WebStorm的JDK

    博客分类:
  • java
 
阅读更多

WebStorm是基于Java的,我们需要安装Oracle JDK的支持,使用如下命令来安装:

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java7-installer

sudo apt-get install oracle-java7-set-default

如果出了这样的bug:

 

Removing outdated cached downloads...
sha256sum mismatch jdk-7u51-linux-i586.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

运行下面的命令:

sudo rm /var/lib/dpkg/info/oracle-java7-installer* 
sudo apt-get purge oracle-java7-installer* 
sudo rm /etc/apt/sources.list.d/*java* 
sudo apt-get update 
sudo add-apt-repository ppa:webupd8team/java 
sudo apt-get update 
sudo apt-get install oracle-java7-installer
sudo apt-get -f install
sudo dpkg -P oracle-java7-installer
sudo apt-get -f install

运行命令查看是否安装成功:

java -version

出现如下内容则表示安装成功:

java version "1.7.0_80"

Java(TM) SE Runtime Environment (build 1.7.0_80-b15)

Java HotSpot(TM) Server VM (build 24.80-b11, mixed mode)

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics