随着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。
图为NetBeans IDE 87.2
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
NetBeans 的详细介绍:请点这里
NetBeans 的下载地址:请点这里
推荐阅读:
Ubuntu 12.10 下Netbeans安装配置详解 http://www.linuxidc.com/Linux/2013-01/78357.htm
Ubuntu Netbeans Xdebug 调试环境【真实环境测试】 http://www.linuxidc.com/Linux/2012-08/69079.htm
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2