Oracle JAVA 8 Stable release has been released on Mar,18 2014 and available to download and install. Oracle Java PPA for Debian systems is being maintained by Webupd8 Team. JAVA 8 is released with many of new features and security updates, read more about whats new in Oracle Java 8. Ubuntu and LinuxMint users use below link to install Java 8 on their system.

This article will help you to Install Oracle JAVA 8 (JDK/JRE 8u111) on Debian 8/7 system using PPA.

1. Add Java 8 PPA

First you need to add webupd8team Java PPA repository in your system. Edit a new ppa file /etc/apt/sources.list.d/java-8-debian.list in text editor

$ sudo vim /etc/apt/sources.list.d/java-8-debian.list

and add following content in it.

deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

Now import GPG key on your system for validate packages before installing them.

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

2. Install Java 8

Now use the following commands to update apt cache and then install Java 8 on your Debian system.

$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

3. Verify Java Version

At this stage you have successfully installed oracle Java on your Debian system. Let’s use following command to verify installed version of Java on your system.

rahul@tecadmin:~$ java -version

java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

4. Configure Java Environment

In Webupd8 ppa repository also providing a package to set environment variables, Install this package using following command.

$ sudo apt-get install oracle-java8-set-default

References:
https://launchpad.net/~webupd8team/+archive/java

安装命令:

debian8

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

debian7

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

最新文章

  1. [No0000AD]7z源码完全移植至Visual Studio 2015
  2. Hackerrank11 LCS Returns 枚举+LCS
  3. 入住cnblogs第一篇随笔 Hello, world!
  4. LINQ 常见用法
  5. C#—WebService
  6. cetos6.5安装Tomcat
  7. mac 安装lua并配置Subline Text2 的lua开发环境
  8. hbuilder的aptana php插件无法提示命名空间之外函数和对象的解决办法
  9. poj 3013 Big Christmas Tree (最短路径Dijsktra) -- 第一次用优先队列写Dijsktra
  10. asp.net redis 实战
  11. 查看电脑已安装的Jdk的位数
  12. 揭秘上海传智播客平均工资超过7k 其中一位知情人士
  13. Python学习笔记——基础篇【第六周】——shutil模块
  14. Laravel项目修改时区
  15. PHP招聘那些事,公司真的不需要培训班出来的人么?
  16. TypeScript体验
  17. [bzoj3191] [JLOI2013]卡牌游戏
  18. C#服务器控件 IsReadOnly 和 Visibility,IsEnable 的区别
  19. 移动端适配--flexible.js
  20. 黄聪:用 CSS 实现元素垂直居中,有哪些好的方案?

热门文章

  1. 感悟 GNU C 以及将 Vim 打造成 C/C++ 的半自动化 IDE
  2. oracle ||,
  3. 将对象转换成Dictionary 字典
  4. PostGIS_导入shp格式的数据
  5. Codeforces Round #311 (Div. 2) D. Vitaly and Cycle 奇环
  6. Java socket 说明 以及web 出现java.net.SocketException:(Connection reset或者Connectreset by peer:Socket write error)的解释
  7. 在thread 引用pthread_t 空指针的问题
  8. deb安装了些啥?
  9. CDH入门
  10. 利用win10自带的系统配置禁止开机启动项和程序
  11. 线程池工厂方法newScheduledThreadPool(),计划任务
  12. 四十九、进程间通信——System V IPC 之消息队列
  13. String、StringBuffer、StringBuilder三种类型的一点比较
  14. crawler_exa4
  15. 【转载】技巧:Vim 的纵向编辑模式
  16. POJ3414(KB1-H BFS)
  17. Disable Maven Nature和disable workspace resolution
  18. windows操作系统用命令提示符查看占用端口号的进程
  19. npm技巧
  20. 【Python之路】第二十篇--MySQL(二)