1. 程式人生 > >Linux Debian 上安裝 JDK7

Linux Debian 上安裝 JDK7

For all of my servers I use Debian, however that distribution has a few problems, mainly the packages can be a bit behind the cutting edge.

Now this is usually a good thing if you are looking for stability – cutting edge software can have issues, especially from new features etc, so for a live environment you want something thats stable.

However, there does come a time when this can bite back. You either need a feature thats not in the standard repositories or in this case the version is now unsupported.

In Debian Squeeze it has Java 6 – but that was EOL’d a couple of months ago so is no longer supported by Oracle. The current version is Java 7 update 17.

So how do we get Java 7 installed?

Well it’s pretty easy to do, we just need to add another repository into apt and install it.

First the repository:

1 2 3 4 5 6 sudosu - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 apt-get update exit

What that does is to install the ubuntu ppa repository into apt, setup the public keys and then load the package lists.

Next we need to install it:

1 sudoapt-get installoracle-java7-installer

This will now download Oracle Java 7 and present you with a couple of screens about licensing. Just ok and accept it and it will now install.

That’s it. You now have Java 7 installed – but it’s not the default JDK (if you already had Java 6 installed). If you want it to be the default then there’s just one more thing to do:

1 sudoapt-get installoracle-java7-set-default

That’s a dummy package but it will make Java 7 the default on that machine. If you want to check then you can check:

1 2 3 4 [email protected] ~ $ java -version java version "1.7.0_17" Java(TM) SE Runtime Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

相關推薦

Linux Debian 安裝 JDK7

For all of my servers I use Debian, however that distribution has a few problems, mainly the packages can be a bit behind the cutting edge. Now this is us

linux系統安裝微信(Ubuntu/Debian 微信安裝

1. 更新系統 1 2 $ sudo apt-get update $ sudo apt-get install git-core curl build-essential openssl libssl-dev  2

linux系統安裝java

ubuntu linux server export 文件夾 如何在ubuntu server上安裝java(jre或jdk),主要註意以下幾點:(在Centos,redhat上同樣適用)1.下載你想要的java版本壓縮包。  JRE下載:http://java.com/en/downlo

Linux docker安裝STF

range com toc -name sources pan .org phi 管理 需要解決問題:調研openstf/stf(https://github.com/openstf/stf),搭建docker(https://www.docker.com/)環境。 拆解為

如何在Linux系統安裝字體

lin 中文 imp mount 改字體 現在 black bre oot 如何在Linux系統上安裝字體 最後更新 2015年12月11日 分類 Linux 101 最新文章 標簽 font linux 字體 一般電腦用戶使用的字體大部分屬於TrueType字體,T

如何實現在虛擬機上的Linux系統安裝vmware tools

linux vmware tools如何實現在虛擬機上的Linux系統上安裝vmware tools工具作者:何揚 時間:2017年9月23日 上午8:29:16 【安裝目的】Linux下需要安裝VMware Tools工具來實現主機和虛擬機直接文件復制粘貼功能。【基本流程】1、首先,打開虛擬機,進入

Redis進階實踐之二如何在Linux系統安裝安裝Redis

進行 redis-cli windows 也會 www. 有關 目標 onf 名稱 原文:Redis進階實踐之二如何在Linux系統上安裝安裝Redis一、引言 上一篇文章寫了“如何安裝VMware Pro虛擬機”和在虛擬機上安裝Linux操作系統。那是第一步,有

Linux平臺安裝MySQL服務

table 校驗 運行 put statement procs 可靠 commands 系列 MySQL服務是一個真正的多線程、多用戶的SQL數據庫服務,憑借其高性能、高可靠和易於使用的特性,成為服務器領域中最受歡迎的開源數據庫系統。為了確保MySQL數據庫功能的完整性。可

Linux Centos7 安裝consul

get spa nod com releases sta span unzip uil 1、[root@localhost ~]# yum install -y unzip 2、[root@localhost ~]# yuminstall -y wget 3、[root

Linux(centos_7)安裝MySql5.7

使用wget從官網下載tar包 wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz 將MySql安裝至/usr/local/mysql目

Solr叢集搭建詳細教程(一) Linux伺服器安裝JDK小白教程

注:歡迎大家轉載,非商業用途請在醒目位置註明本文連結和作者名dijia478,商業用途請聯絡本人[email protected]。 一、Solr叢集的系統架構 SolrCloud(solr 雲)是Solr提供的分散式搜尋方案,當你需要大規模,容錯,分散式索引和檢索能力時使用 SolrCloud

在 Amazon Linux 或 Amazon Linux 2 安裝 SSM 代理

本文Copy 自 https://docs.aws.amazon.com/zh_cn/systems-manager/latest/userguide/sysman-manual-agent-install.html 在 Amazon Linux 或 Amazon Linux 2 上安裝 SSM

redis3.2.1叢集介紹及在Linux作業系統安裝

一、redis叢集介紹點選開啟連結 Redis3.0版本之後支援Cluster. 二、redis叢集安裝 準備工作:       1. 安裝兩臺虛擬機器,模擬6個節點,一臺機器3個節點,創建出3 master、3 salve 環境。 &nbs

linux伺服器安裝jdk的兩種方法(yum+下載包)

這篇文章主要給大家介紹了關於在linux伺服器上安裝jdk的兩種方法,分別是利用yum安裝和從官網下載包安裝,文中通過示例程式碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面來一起看看吧 前言 對於開發者來說,安裝jdk按理說是非常簡單的事,

LInux/ubuntu安裝特定版本的 Pytorch ,例如 0.3.1版本

指令 conda install pytorch=0.3.1 torchvision cuda90 -c pytorch 注意事項: 1   pytorch=0.3.1  (0.3.1 改為你要安裝的pytorch版本)  檢視pytorch版本號點我 2   cud

linux系統安裝mysql5.7

    1.驗證Centos是否安裝MySQL        $>rpm -qa | grep mysql     2.刪除MySql        $>rpm -e --nodeps xxx-mysql--xxxx     3.驗證刪除是否成功!        

如何在Linux/Windows安裝ElasticSearch

下載頁面 Linux安裝 在下載頁面選擇macOS/Linux進行下載,解壓後執行your-es-dir/bin/elasticsearch,例如 $ tar -xvf elasticsearch-6

Linux伺服器安裝PHP5.2.17和php5.6.38

** 同一臺機器上安裝PHP5.2.17和php5.6.38 ** 本文使用的伺服器環境為(Centos 6.8 64bit) 1、安裝tengine-2.2.0 1)下載原始碼包wget http://tengine.taobao.org/download/t

Linux系統安裝mysql

 Linux系統上安裝MySQL: 解除安裝自帶mysql: 查詢mysql的安裝情況 rpm -qa | grep mysql 解除安裝原生的MySQL rpm -e --nodeps mysq

linux伺服器安裝單機版redis

一、環境準備 因為redis使用c語言開發的,如果要執行在linux上,需要gcc-c++的環境。 ​那麼我們就要先看一下是否安裝了gcc-c++如果沒有的話, ​需要安裝gcc-c++環境(友情提示,除了指令碼語言,linux上執行啥東西都需要裝環境)。 首先需要檢