CentOS JDK7 설치

CentOS JDK7 설치

1 확인[ | ]

[root@zetawiki ~]# java -version
-bash: java: command not found
[root@zetawiki ~]# javac -version
-bash: javac: command not found
[root@zetawiki ~]# yum list java-1.7.0-openjdk-devel
... (생략)
Available Packages
java-1.7.0-openjdk-devel.x86_64             1:1.7.0.111-2.6.7.2.el7_2               updates

2 설치[ | ]

[root@zetawiki ~]# yum install java-1.7.0-openjdk-devel
... (생략)
===========================================================================================
 Package                        Arch      Version                         Repository  Size
===========================================================================================
Installing:
 java-1.7.0-openjdk-devel       x86_64    1:1.7.0.111-2.6.7.2.el7_2       updates    9.2 M
Installing for dependencies:
 GConf2                         x86_64    3.2.6-8.el7                     base       1.0 M
 atk                            x86_64    2.14.0-1.el7                    base       251 k
 cairo                          x86_64    1.14.2-1.el7                    base       711 k
 cups-libs                      x86_64    1:1.6.3-22.el7                  base       355 k
 flac-libs                      x86_64    1.3.0-5.el7_1                   base       169 k
 fontconfig                     x86_64    2.10.95-7.el7                   base       228 k
 fontpackages-filesystem        noarch    1.44-8.el7                      base       9.9 k
 gdk-pixbuf2                    x86_64    2.31.6-3.el7                    base       559 k
 giflib                         x86_64    4.1.6-9.el7                     base        40 k
 graphite2                      x86_64    1.3.6-1.el7_2                   updates    112 k
 gsm                            x86_64    1.0.13-11.el7                   base        30 k
 gtk2                           x86_64    2.24.28-8.el7                   base       3.4 M
 harfbuzz                       x86_64    0.9.36-1.el7                    base       156 k
 hicolor-icon-theme             noarch    0.12-7.el7                      base        42 k
 jasper-libs                    x86_64    1.900.1-29.el7                  base       149 k
 java-1.7.0-openjdk             x86_64    1:1.7.0.111-2.6.7.2.el7_2       updates    209 k
 java-1.7.0-openjdk-headless    x86_64    1:1.7.0.111-2.6.7.2.el7_2       updates     25 M
 javapackages-tools             noarch    3.4.1-11.el7                    base        73 k
 libICE                         x86_64    1.0.9-2.el7                     base        65 k
 libSM                          x86_64    1.2.2-2.el7                     base        39 k
 libX11                         x86_64    1.6.3-2.el7                     base       605 k
 libX11-common                  noarch    1.6.3-2.el7                     base       162 k
 libXau                         x86_64    1.0.8-2.1.el7                   base        29 k
 libXcomposite                  x86_64    0.4.4-4.1.el7                   base        22 k
 libXcursor                     x86_64    1.1.14-2.1.el7                  base        30 k
 libXdamage                     x86_64    1.1.4-4.1.el7                   base        20 k
 libXext                        x86_64    1.3.3-3.el7                     base        39 k
 libXfixes                      x86_64    5.0.1-2.1.el7                   base        18 k
 libXfont                       x86_64    1.5.1-2.el7                     base       150 k
 libXft                         x86_64    2.3.2-2.el7                     base        58 k
 libXi                          x86_64    1.7.4-2.el7                     base        40 k
 libXinerama                    x86_64    1.1.3-2.1.el7                   base        14 k
 libXrandr                      x86_64    1.4.2-2.el7                     base        26 k
 libXrender                     x86_64    0.9.8-2.1.el7                   base        25 k
 libXtst                        x86_64    1.2.2-2.1.el7                   base        20 k
 libXxf86vm                     x86_64    1.1.3-2.1.el7                   base        17 k
 libasyncns                     x86_64    0.8-7.el7                       base        26 k
 libfontenc                     x86_64    1.1.2-3.el7                     base        30 k
 libogg                         x86_64    2:1.3.0-7.el7                   base        24 k
 libpng                         x86_64    2:1.5.13-7.el7_2                updates    213 k
 libsndfile                     x86_64    1.0.25-10.el7                   base       149 k
 libthai                        x86_64    0.1.14-9.el7                    base       187 k
 libvorbis                      x86_64    1:1.3.3-8.el7                   base       204 k
 libxcb                         x86_64    1.11-4.el7                      base       189 k
 libxshmfence                   x86_64    1.2-1.el7                       base       7.2 k
 libxslt                        x86_64    1.1.28-5.el7                    base       242 k
 lksctp-tools                   x86_64    1.0.13-3.el7                    base        87 k
 mesa-libEGL                    x86_64    10.6.5-3.20150824.el7           base        74 k
 mesa-libGL                     x86_64    10.6.5-3.20150824.el7           base       184 k
 mesa-libgbm                    x86_64    10.6.5-3.20150824.el7           base        40 k
 mesa-libglapi                  x86_64    10.6.5-3.20150824.el7           base        39 k
 pango                          x86_64    1.36.8-2.el7                    base       287 k
 pcsc-lite-libs                 x86_64    1.8.8-6.el7                     base        34 k
 pixman                         x86_64    0.32.6-3.el7                    base       254 k
 psmisc                         x86_64    22.20-9.el7                     base       140 k
 pulseaudio-libs                x86_64    6.0-7.el7                       base       576 k
 python-javapackages            noarch    3.4.1-11.el7                    base        31 k
 python-lxml                    x86_64    3.2.1-4.el7                     base       758 k
 ttmkfdir                       x86_64    3.0.9-42.el7                    base        48 k
 tzdata-java                    noarch    2016f-1.el7                     updates    179 k
 xorg-x11-font-utils            x86_64    1:7.5-20.el7                    base        87 k
 xorg-x11-fonts-Type1           noarch    7.5-9.el7                       base       521 k

Transaction Summary
===========================================================================================
Install  1 Package (+62 Dependent packages)

Total download size: 48 M
Installed size: 175 M
Is this ok [y/d/N]: y
... (생략)
  tzdata-java.noarch 0:2016h-1.el7                                                         
  xorg-x11-font-utils.x86_64 1:7.5-20.el7                                                  
  xorg-x11-fonts-Type1.noarch 0:7.5-9.el7                                                  

Complete!

3 확인 2[ | ]

[root@zetawiki ~]# yum list java-1.7.0-openjdk-devel
... (생략)
Installed Packages
java-1.7.0-openjdk-devel.x86_64             1:1.7.0.111-2.6.7.2.el7_2              @update
[root@zetawiki ~]# java -version
java version "1.7.0_111"
OpenJDK Runtime Environment (rhel-2.6.7.2.el7_2-x86_64 u111-b01)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
[root@zetawiki ~]# javac -version
javac 1.7.0_111

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}