使用PPA在Elementary OS 'Luna'上安装Oracle Java 7
来源:互联网 发布:淘宝卖家类目怎么修改 编辑:程序博客网 时间:2024/05/15 21:36
问题: 我该如何在 Elemetary OS Luna 上安装Oracle Java 7?
回答: 在 Elementary OS Luna 安装 Java 7 的步骤如下: 由于Elementary OS是基于Ubuntu,所以我们允许使用具有多种Java包的WEPUD8 PPA。
打开终端。
运行以下指令添加Java的PPA到你的软件仓:
$ sudo add-apt-repository ppa:webupd8team/javaYou are about to add the following PPA to your system:Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK6 / JDK7 / JDK8). There are no actual Java files in this PPA. More info: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.htmlDebian installation instructions: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.htmlMore info: https://launchpad.net/~webupd8team/+archive/javaPress [ENTER] to continue or ctrl-c to cancel adding it
按回车继续
gpg: keyring `/tmp/tmpB5WwDG/secring.gpg' createdgpg: keyring `/tmp/tmpB5WwDG/pubring.gpg' createdgpg: requesting key EEA14886 from hkp server keyserver.ubuntu.comgpg: /tmp/tmpB5WwDG/trustdb.gpg: trustdb createdgpg: key EEA14886: public key "Launchpad VLC" importedgpg: Total number processed: 1gpg: imported: 1 (RSA: 1)OK
现在更新你的系统
$ sudo apt-get update
运行以下命令安装Java 7:
$ sudo apt-get install oracle-java7-installer[sudo] password for enock:Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:gir1.2-gstreamer-0.10 libilmbase6 libmagickcore4 libmagickwand4 libcdt4libmagickcore4-extra liblqr-1-0 imagemagick-common libpathplan4 libopenexr6rsync netpbm libgvc5 libnetpbm10 libgraph4Use 'apt-get autoremove' to remove them.The following extra packages will be installed:gsfonts-x11 java-commonSuggested packages:default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfontsttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-minchottf-sazanami-mincho ttf-arphic-umingThe following NEW packages will be installed:gsfonts-x11 java-common oracle-java7-installer0 upgraded, 3 newly installed, 0 to remove and 196 not upgraded.Need to get 88.5 kB of archives.After this operation, 473 kB of additional disk space will be used.Do you want to continue [Y/n]?
输入代表Yes的Y以及回车键继续安装。
在安装过程中,你需要同意条款才能继续。选择OK。
然后选择Yes继续。
现在请等待安装包的下载与自动安装:
安装完成。你可以在终端上查看Java版本:
$ java -versionjava version "1.7.0_45"Java(TM) SE Runtime Environment (build 1.7.0_45-b18)Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
0 0
- 使用PPA在Elementary OS 'Luna'上安装Oracle Java 7
- Elementary OS Luna安装使用体会(对比PEAR OS)
- elementary OS 常用软件安装
- 安装elementary os
- Elementary OS安装Chrome
- 在 Ubuntu 中使用 PPA 安装 Java 8
- 通过PPA仓库为ubuntu安装Oracle Java 7
- Elementary体验之安装Elementary OS
- elementary os:安装配置jdk7
- elementary os 中文输入法安装
- Elementary OS下使用Unetbootin
- 在 CentOS 7 / RHEL 7 上怎样安装 Eclipse Luna IDE
- Ubuntu下最简单的安装Oracle Java的方法(使用PPA)
- Ubuntu 15.10 上使用ppa安装Atom编辑器
- Ubuntu 15.10 上使用ppa安装Atom编辑器
- Elementary OS安装打印机HP LaserJet 1020
- elementary os:MySQL5 源码安装及配置
- elementary os:源码安装程序+创建快捷方式
- 发布
- C++智能指针(auto_ptr)详解
- Troubleshooting Autoinvoice Import
- 基于Java NIO的即时聊天服务器模型
- 卡包app操作案例
- 使用PPA在Elementary OS 'Luna'上安装Oracle Java 7
- 分布式日志收集系统原理
- android 组件
- 打造自己称手的代码
- 上班第一天
- java 环境变量的配置
- 安卓剪贴板服务ClipboardManager
- 图书馆杂记
- PHP安全编程之加密功能