码迷,mamicode.com
首页 > 编程语言 > 详细

debain安装Java

时间:2016-06-03 01:12:18      阅读:297      评论:0      收藏:0      [点我收藏+]

标签:

本文将告诉你如何在Debian 7 “Wheezy”和Debian 8 “Jessie”系统及衍生版本上安装Java 8。需要的朋友可以参考下。

Debian 8 Jessie上安装命令:

sudo sh -c ‘echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
sudo sh -c ‘echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer


Debian 7 Wheezy 上安装的命令:

sudo sh -c ‘echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
sudo sh -c ‘echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer

debain安装Java

标签:

原文地址:http://www.cnblogs.com/free-earth-alliance/p/5554805.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!