How to install Java OPENJDK on a centos system _java

Source: Internet
Author: User
Tags centos

CentOS 6.X and 5.X are OPENJDK Runtime Environment (OPENJDK). It is an Open-source Java platform on Linux. CentOS Yum command to install the Java SDK openjdk

CentOS Linux JAVA (OPENJDK) package name
1.JAVA-1.7.0-OPENJDK-OPENJDK Runtime Environment
2.JAVA-1.7.0-OPENJDK-DEVEL-OPENJDK Development Environment

Enter the following command to view the list of available JDK packages;

[Root@dabu.info ~]# Yum Search Java | Grep-i--color JDK

The output is similar to the following figure:

Centos-openjdk

Installing the JAVA SDK in CentOS Linux
at the command line terminal, enter the following command with root user yum install Opensdk:

[Root@dabu.info ~] #yum install JAVA-1.7.0-OPENJDK java-1.7.0-openjdk-devel #安装openjdk

The output is as follows:

Loaded plugins:downloadonly, Fastestmirror, security Loading mirror speeds from cached Hostfile * base:mirror.wiredtre e.com * epel:mirror.steadfast.net * extras:bay.uchicago.edu * updates:mirror.team-cymru.org Setting up Install proce SS Resolving dependencies--> Running transaction Check---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.51-2.4.4.1. El6_5 is installed--> processing dependency:jpackage-utils >= for 1.7.3-1JPP.2 1.7.0.51-2.4.4.1.el6_5.x86_64--> processing dependency:xorg-x11-fonts-type1 for package:1: java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> processing Dependency:tzdata-java for package:1: java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> processing Dependency:rhino for package:1: java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> processing dependency:libpulse.so.0 (PULSE_0) (64bit) for package:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> Processing Dependency:libasound. So.2 (ALSA_0.9.0RC4) (64bit) for package:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> Processing Dependency:libasound.so.2 (alsa_0.9) (64bit) for package:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> Processing dependency:libpulse.so.0 () (64bit) for package:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> Processing dependency:libgif.so.4 () (64bit) for package:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64--> Processing dependency:libasound.so.2 () (64bit) for package:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64-- > Processing dependency:libxtst.so.6 () (64bit) for package:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64-- > Running Transaction Check---> Package alsa-lib.x86_64 0:1.0.22-3.el6 'll be installed---> Package giflib.x86 _64 0:4.1.6-3.1.el6 is installed--> processing dependency:libsm.so.6 () (64bit) for package:giflib-4.1.6-3.1.el6 . x86_64--> Processing dependency:libice.so.6 () (64bit) for package: giflib-4.1.6-3.1.el6.x86_64---> Package jpackage-utils.noarch 0:1.7.5-3.12.el6 'll be installed---> Package lib Xtst.x86_64 0:1.2.1-2.el6 'll be installed---> Package pulseaudio-libs.x86_64 0:0.9.21-14.el6_3 'll be installed--& Gt Processing dependency:libsndfile.so.1 (libsndfile.so.1.0) (64bit) for package:pulseaudio-libs-0.9.21-14.el6_3.x86_ --> processing dependency:libsndfile.so.1 () (64bit) for package:pulseaudio-libs-0.9.21-14.el6_3.x86_64--> Processing dependency:libasyncns.so.0 () (64bit) for package:pulseaudio-libs-0.9.21-14.el6_3.x86_64---> Package Rhino.noarch 0:1.7-0.7.r2.2.el6 'll be installed--> processing dependency:jline for PACKAGE:RHINO-1.7-0.7.R2.2.EL6 . Noarch---> Package tzdata-java.noarch 0:2013i-2.el6 'll be installed---> Package xorg-x11-fonts-type1.noarch 0: 7.2-9.1.el6 'll be installed--> processing Dependency:ttmkfdir for package: Xorg-x11-fonts-type1-7.2-9.1.el6.noarch--> processing Dependency:ttmkfdir for Package:xorg-x11-fonts-type1-7.2-9.1.el6.noarch--> processing Dependency:mkfontdir for package: Xorg-x11-fonts-type1-7.2-9.1.el6.noarch--> processing Dependency:mkfontdir for package: Xorg-x11-fonts-type1-7.2-9.1.el6.noarch--> Running Transaction Check---> Package jline.noarch 0:0.9.94-0.8.el6  Would be installed---> Package libice.x86_64 0:1.0.6-1.el6 'll be installed---> Package libsm.x86_64 0:1.2.1-2.el6 Would be installed---> Package libasyncns.x86_64 0:0.8-1.1.el6 'll be installed---> Package libsndfile.x86_64 0:1 .0.20-5.el6 'll be installed--> processing dependency:libvorbisenc.so.2 () (64bit) for package: libsndfile-1.0.20-5.el6.x86_64--> Processing dependency:libvorbis.so.0 () (64bit) for package: libsndfile-1.0.20-5.el6.x86_64--> Processing dependency:libogg.so.0 () (64bit) for package: libsndfile-1.0.20-5.el6.x86_64--> Processing dependency:libflac.so.8 () (64bit) for package: libsndfile-1.0.20-5.el6.x86_64---> Package ttmkfDir.x86_64 0:3.0.9-32.1.el6 would be installed---> Package xorg-x11-font-utils.x86_64 1:7.2-11.el6 would be installed-- > Processing dependency:libfontenc.so.1 () (64bit) for package:1:xorg-x11-font-utils-7.2-11.el6.x86_64--> Processing dependency:libxfont.so.1 () (64bit) for package:1:xorg-x11-font-utils-7.2-11.el6.x86_64--> Running Transaction Check---> Package flac.x86_64 0:1.2.1-6.1.el6 'll be installed---> Package libxfont.x86_64. El6_5 would be installed---> Package libfontenc.x86_64 0:1.0.5-2.el6 would be installed---> Package libogg.x86_64 2: 1.1.4-2.1.EL6 would be installed---> Package libvorbis.x86_64 1:1.2.3-4.el6_2.1 would be installed--> finished Depen Dency resolution Dependencies Resolved =========================================================================== ======================= Package Arch Version Repository Size =============================== =================================================================== installing:java-1.7.0-openjdk x86_64 1:1.7.0.51-2.4.4.1.el6_5 updates M Install ing for dependencies:alsa-lib x86_64 1.0.22-3.el6 base 370 k FLAC x86_64 -6.1.el6 Base 243 k giflib x86_64 4.1.6-3.1.el6 base Panax Notoginseng k JLine No Arch 0.9.94-0.8.el6 base Jpackage-utils noarch 1.7.5-3.12.el6 Base K Lib      ICE x86_64 1.0.6-1.el6 base k libsm x86_64 1.2.1-2.el6 Base            Panax Notoginseng k libxfont x86_64 1.4.5-3.el6_5 updates 136 k libxtst x86_64 1.2.1-2.el6 Base k Libasyncns x86_64 0.8-1.1.el6 base k Libfontenc x86_64 1.0         .5-2.el6 base k Libogg x86_64 2:1.1.4-2.1.el6 base k libsndfile x86_64 1.0.20-5.el6          Base 233 k Libvorbis x86_64 1:1.2.3-4.el6_2.1 base k pulseaudio-libs x 86_64 0.9.21-14.el6_3 Base 462 K Rhino Noarch 1.7-0.7.r2.2.el6 base 778 k TT Mkfdir x86_64 3.0.9-32.1.el6 base k tzdata-java noarch 2013i-2.el6 upd    Ates 147 k xorg-x11-font-utils x86_64 1:7.2-11.el6 base-K xorg-x11-fonts-type1 Noarch 7.2-9.1.EL6 Base 520 k Transaction Summary =============================================================  ===================================== Install Package (s) total download size:29 m installed size:100 m are this OK [y/n]: Y downloading Packages: (1/21): alsa-lib-1.0.22-3.el6.x86_64.rpm | 370 KB 00:00 (2/21): flac-1.2.1-6.1.el6.x86_64.rpm | 243 KB 00:00 (3/21): giflib-4.1.6-3.1.el6.x86_64.rpm | Panax Notoginseng KB 00:00 (4/21): Java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x86_64.rpm | MB 00:02 (5/21): jline-0.9.94-0.8.el6.noarch.rpm | KB 00:00 (6/21): jpackage-utils-1.7.5-3.12.el6.noarch.rpm | MB 00:00 (7/21): libice-1.0.6-1.el6.x86_64.rpm | MB 00:00 (8/21): libsm-1.2.1-2.el6.x86_64.rpm | Panax Notoginseng KB 00:00 (9/21): libxfont-1.4.5-3.el6_5.x86_64.rpm | 136 KB 00:00 (10/21): libxtst-1.2.1-2.el6.x86_64.rpm | MB 00:00 (11/21): libasyncns-0.8-1.1.el6.x86_64.rpm | KB 00:00 (12/21): libfontenc-1.0.5-2.el6.x86_64.rpm | KB 00:00 (13/21): libogg-1.1.4-2.1.el6.x86_64.rpm | KB 00:00 (14/21): libsndfile-1.0.20-5.el6.x86_64.rpm | 233 KB 00:00 (15/21): libvorbis-1.2.3-4.el6_2.1.x86_64.rpm | MB 00:00 (16/21): pulseaudio-libs-0.9.21-14.el6_3.x86_64.rpm | 462 KB 00:00 (17/21): rhino-1.7-0.7.r2.2.el6. noarch.rpm | 778 KB 00:00 (18/21): ttmkfdir-3.0.9-32.1.el6.x86_64.rpm | MB 00:00 (19/21): tzdata-java-2013i-2.el6.noarch.rpm | 147 KB 00:00 (20/21): xorg-x11-font-utils-7.2-11.el6.x86_64.rpm | MB 00:00 (21/21): xorg-x11-fonts-type1-7.2-9.1.el6.noarch.rpm |
520 KB 00:00-------------------------------------------------------------------------------------------------- Total 7.2 mb/s | MB 00:04 Running rpm_check_debug Running Transaction Test Transaction test succeeded Running Transaction installing                         : libice-1.0.6-1.el6.x86_64 1/21 installing:2:libogg-1.1.4-2.1.el6.x86_64                          2/21 installing:libsm-1.2.1-2.el6.x86_64 3/21 installing:libxtst-1.2.1-2.el6.x86_64 4/21 Installing:jpackage-utils-1.7.5-3.12.el6.noarch 5/21 installing:als a-lib-1.0.22-3.el6.x86_64 6/21 installing:libfontenc-1.0.5-2.el6.x86_64 7/21 Ins                     talling:libxfont-1.4.5-3.el6_5.x86_64 8/21 installing:1:xorg-x11-font-utils-7.2-11.el6.x86_64 9/21 installing:giflib-4.1.6-3.1.el6.x86_64 10/21 installing:flac-1.2.1-
 6.1.el6.x86_64 11/21 installing:1:libvorbis-1.2.3-4.el6_2.1.x86_64 12/21                        installing:libsndfile-1.0.20-5.el6.x86_64 13/21 installing:libasyncns-0.8-1.1.el6.x86_64 14/21 installing:pulseaudio-libs-0.9.21-14.el6_3.x86_64 15/21 Installing:jline -0.9.94-0.8.el6.noarch 16/21 Installing:rhino-1.7-0.7.r2.2.el6.noarch 17                         /21 Installing:tzdata-java-2013i-2.el6.noarch 18/21 installing:ttmkfdir-3.0.9-32.1.el6.x86_6419/21 Installing:xorg-x11-fonts-type1-7.2-9.1.el6.noarch 20/21 installing:1:java-1.7.0-openjdk-1.7
 .0.51-2.4.4.1.el6_5.x86_64 21/21 verifying:pulseaudio-libs-0.9.21-14.el6_3.x86_64 1/21                        verifying:ttmkfdir-3.0.9-32.1.el6.x86_64 2/21 Verifying:tzdata-java-2013i-2.el6.noarch 3/21 verifying:libxfont-1.4.5-3.el6_5.x86_64 4/21 verifying:libfontenc-1.0. 5-2.el6.x86_64 5/21 verifying:flac-1.2.1-6.1.el6.x86_64 6/21 verifyi                         Ng:jline-0.9.94-0.8.el6.noarch 7/21 verifying:alsa-lib-1.0.22-3.el6.x86_64 8/21 verifying:2:libogg-1.1.4-2.1.el6.x86_64 9/21 Verifying:1:libvorbis-1.2.3-4.el6_2 .1.x86_64 10/21 verifying:1:xorg-x11-font-utils-7.2-11.el6.x86_64 11/21 verifyi Ng:xorg-x11-fonts-type1-7.2-9.1.el6.noarch 12/21 verifying:libsm-1.2.1-2.el6.x86_64 13/21 Verify ing:libice-1.0.6-1.el6.x86_64 14/21 verifying:1:java-1.7.0-openjdk-1.7.0.51-2.4.4.1.el6_5.x8 6_64 15/21 verifying:rhino-1.7-0.7.r2.2.el6.noarch 16/21 verifying:libasyncns-0. 8-1.1.el6.x86_64 17/21 verifying:giflib-4.1.6-3.1.el6.x86_64 18/21 veri                     fying:libsndfile-1.0.20-5.el6.x86_64 19/21 Verifying:jpackage-utils-1.7.5-3.12.el6.noarch 20/21 verifying:libxtst-1.2.1-2.el6.x86_64 21/21 Installed:java-1.7.0-open jdk.x86_64 1:1.7.0.51-2.4.4.1.el6_5 Dependency installed:alsa-lib.x86_64 0:1.0.22-3.el6 flac.x86_64. 1.el6 giflib.x86_64 0:4.1.6-3.1.el6 jline.noarch 0:0.9.94-0.8.el6 jpackage-utils.noarch li Bice.x86_64 0:1.0.6-1.el6 libsm.x86_64 0:1.2.1-2.el6 libxfont.x86_64 0:1.4.5-3.el6_5 libxtst.x86_64 0:1.2.1-2.el6. x86_64 0:0.8-1.1.el6 libfontenc.x86_64 0:1.0.5-2.el6 libogg.x86_64 2:1.1.4-2.1.el6. 
 El6 libvorbis.x86_64 1:1.2.3-4.el6_2.1 pulseaudio-libs.x86_64 0:0.9.21-14.el6_3 rhino.noarch ttmkfdir.x86_64 0:3.0.9-32.1.el6 tzdata-java.noarch 0:2013i-2.el6 xorg-x11-font-utils.x86_64 xo
 Rg-x11-fonts-type1.noarch 0:7.2-9.1.el6

 
complete!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.