• bash: javac: command not found...


    1、

    [root@PC3 yum.repos.d]# java -version
    java version "1.7.0_51"
    OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31)
    OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

    2、

    [root@PC3 yum.repos.d]# yum list java*
    Loaded plugins: langpacks, product-id, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Installed Packages
    java-1.7.0-openjdk.x86_64                                         1:1.7.0.51-2.4.5.5.el7                                @anaconda/7.0
    java-1.7.0-openjdk-headless.x86_64                                1:1.7.0.51-2.4.5.5.el7                                @anaconda/7.0
    javapackages-tools.noarch                                         3.4.1-5.el7                                           @anaconda/7.0
    Available Packages
    java-1.6.0-openjdk.x86_64                                         1:1.6.0.0-6.1.13.1.el7                                rhel7
    java-1.6.0-openjdk-devel.x86_64                                   1:1.6.0.0-6.1.13.1.el7                                rhel7
    java-1.7.0-openjdk-devel.x86_64                                   1:1.7.0.51-2.4.5.5.el7                                rhel7
    java-atk-wrapper.i686                                             0.30.4-5.el7                                          rhel7
    java-atk-wrapper.x86_64                                           0.30.4-5.el7                                          rhel7
    javamail.noarch                                                   1.4.6-8.el7                                           rhel7
    javassist.noarch                                                  3.16.1-10.el7                                         rhel7

    3、

    [root@PC3 yum.repos.d]# yum install java-1.7.0-openjdk-devel.x86_64
    Loaded plugins: langpacks, product-id, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Resolving Dependencies
    --> Running transaction check
    ---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.51-2.4.5.5.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    =====================================================================================================================================
     Package                                  Arch                   Version                                 Repository             Size
    =====================================================================================================================================
    Installing:
     java-1.7.0-openjdk-devel                 x86_64                 1:1.7.0.51-2.4.5.5.el7                  rhel7                 9.1 M
    
    Transaction Summary
    =====================================================================================================================================
    Install  1 Package
    
    Total download size: 9.1 M
    Installed size: 36 M
    Is this ok [y/d/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : 1:java-1.7.0-openjdk-devel-1.7.0.51-2.4.5.5.el7.x86_64                                                            1/1
    rhel7/productid                                                                                               | 1.6 kB  00:00:00
      Verifying  : 1:java-1.7.0-openjdk-devel-1.7.0.51-2.4.5.5.el7.x86_64                                                            1/1
    
    Installed:
      java-1.7.0-openjdk-devel.x86_64 1:1.7.0.51-2.4.5.5.el7
    
    Complete!

    4、

    [root@PC3 yum.repos.d]# javac -version
    javac 1.7.0_51
  • 相关阅读:
    第一次冲刺02
    第一次冲刺01
    Android源码分析(十四)PackageManagerService服务分析
    Android源码分析(十三)ActivityManagerService服务分析
    Android源码分析(十二)ServiceManager服务分析
    Serializable和Parcelable之序列化
    ViewPager 相关使用
    AIDL介绍以及简单使用
    Android 四大组件 (五) 第五大组件
    Android 源码分析(十一) 事件传递机制
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/14337451.html
Copyright © 2020-2023  润新知