在Ubuntu, Linux Mint, Elementary OS和Debian上安装NetBeans IDE 8.0

随着Oracle Java 8的发布,NetBeans IDE 8.0也一并发布,在这篇文章将教大家在Ubuntu 14.04 Trusty Tahr, Ubuntu 13.10 Saucy Salamander, Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Linux Mint 17 Qiana, Linux Mint 16 Petra, Linux Mint 14 Nadia, Linux Mint 13 Maya, Elementary OS 0.2 Luna, Debian 上安装NetBeans IDE 8.0。

首先我们需要安装Java 8:

在Ubuntu, Linux Mint and Elementary OS上安装,请使用下面的命令:

sudo apt-get purge openjdk*

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

在Debian Wheezy上安装Java 8:

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list

echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

apt-get update

sudo apt-get install oracle-java8-installer

在Debian Jessie上安装Java 8:

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list

echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

apt-get update

sudo apt-get install oracle-java8-installer

成功安装Java 8之后,我们就可以安装NetBeans IDE 8.0:

在32位的Ubuntu, Linux Mint, Elementary OS, Debian上安装NetBeans IDE 8.0:

wget download.oracle.com/otn-pub/java/jdk-nb/8-8.0/jdk-8-nb-8-linux-i586.sh

sudo chmod +x jdk-8-nb-8-linux-i586.sh

./jdk-8-nb-8-linux-i586.sh

在64位的Ubuntu, Linux Mint, Elementary OS, Debian上安装NetBeans IDE 8.0:

wget download.oracle.com/otn-pub/java/jdk-nb/8-8.0/jdk-8-nb-8-linux-x64.sh

sudo chmod +x jdk-8-nb-8-linux-x64.sh sudo

./jdk-8-nb-8-linux-x64.sh

Tagged with: