CentOS安装java and javac(java执行环境和开发环境)

[[email protected] usr]# yum install java

Loaded plugins: fastestmirror, refresh-packagekit, security

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Loading mirror speeds from cached hostfile

* base: mirrors.btte.net

* extras: mirrors.btte.net

* updates: mirrors.btte.net

Setting up Install Process

Package 1:java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64 already installed and latest version

Nothing to do

[[email protected] usr]# yum search jdk

Loaded plugins: fastestmirror, refresh-packagekit, security

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Loading mirror speeds from cached hostfile

* base: mirrors.btte.net

* extras: mirrors.btte.net

* updates: mirrors.btte.net

=============================== N/S Matched: jdk ===============================

java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment

java-1.6.0-openjdk-demo.x86_64 : OpenJDK Demos

java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment

java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation

java-1.6.0-openjdk-src.x86_64 : OpenJDK Source Bundle

java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment

java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos

java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment

java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation

java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle

ldapjdk-javadoc.x86_64 : Javadoc for ldapjdk

icedtea-web.x86_64 : Additional Java components for OpenJDK - Java browser

: plug-in and Web Start implementation

ldapjdk.x86_64 : The Mozilla LDAP Java SDK

Name and summary matches only, use "search all" for everything.

[[email protected] usr]# yum install java*jdk*devel*   不知道名称能够使用通配符

Loaded plugins: fastestmirror, refresh-packagekit, security

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Loading mirror speeds from cached hostfile

* base: mirrors.btte.net

* extras: mirrors.btte.net

* updates: mirrors.btte.net

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-5.1.13.3.el6_5 will be installed

--> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-5.1.13.3.el6_5 for package: 1:java-1.6.0-openjdk-devel-1.6.0.0-5.1.13.3.el6_5.x86_64

---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5 will be installed

--> Running transaction check

---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-5.1.13.3.el6_5 will be installed

--> Processing Dependency: rhino for package: 1:java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.x86_64

--> Running transaction check

---> Package rhino.noarch 0:1.7-0.7.r2.2.el6 will be installed

--> Processing Dependency: jline for package: rhino-1.7-0.7.r2.2.el6.noarch

--> Running transaction check

---> Package jline.noarch 0:0.9.94-0.8.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package                    Arch     Version                    Repository

Size

================================================================================

Installing:

java-1.6.0-openjdk-devel   x86_64   1:1.6.0.0-5.1.13.3.el6_5   updates    15 M

java-1.7.0-openjdk-devel   x86_64   1:1.7.0.55-2.4.7.1.el6_5   updates   9.4 M

Installing for dependencies:

java-1.6.0-openjdk         x86_64   1:1.6.0.0-5.1.13.3.el6_5   updates    41 M

jline                      noarch   0.9.94-0.8.el6             base       86 k

rhino                      noarch   1.7-0.7.r2.2.el6           base      778 k

Transaction Summary

================================================================================

Install       5 Package(s)

Total download size: 66 M

Installed size: 132 M

Is this ok [y/N]: n  这里列出两个符合通配符的jdk, 所以我不安装两个

Exiting on user Command

[[email protected] usr]# yum install java-1.7.0-openjdk-devel

Loaded plugins: fastestmirror, refresh-packagekit, security

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Loading mirror speeds from cached hostfile

* base: mirror.esocc.com

* extras: mirrors.aliyun.com

* updates: mirrors.aliyun.com

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5 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.55-2.4.7.1.el6_5   updates   9.4 M

Transaction Summary

================================================================================

Install       1 Package(s)

Total download size: 9.4 M

Installed size: 36 M

Is this ok [y/N]: y

Downloading Packages:

java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64.r | 9.4 MB     00:07

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : 1:java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64     1/1

Verifying  : 1:java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64     1/1

Installed:

java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5

Complete!

[[email protected] usr]#

时间: 2024-10-08 10:44:19

CentOS安装java and javac(java执行环境和开发环境)的相关文章

通过Maven配置测试环境和开发环境连接不同的数据库

通过Maven配置测试环境和开发环境连接不同的数据库 作者及来源: 通灵宝玉 - 博客园    收藏到→_→: 此文来自: 马开东博客 网址:http://www.makaidong.com 摘要: 通过Maven配置测试环境和开发环境连接不同的数据库 "通过Maven配置测试环境和开发环境连接不同的数据库":关键词:通过 maven 配置 测试 环境 开发 环境 连接 不同 其他数据库 通过maven配置测试环境和开发环境连接不同的其他数据库 操作上分3个步骤 1.在数据持久层的po

angular4的多环境(测试环境与开发环境,生产环境)

使生成项目可以多环境运行(测试环境与开发环境,生产环境) 这里对应的是不同的运行环境,随时通过上面的方式进行切换 同样着也可以用在部署环境上面..这个表式编译生成生产环境的微信号 原文地址:https://www.cnblogs.com/boonook/p/8689291.html

JAVA入门1 Mac os x 集成开发环境Eclipse的安装

为了彻底摆脱Windows的约束,我把MBP的磁盘抹掉并且重新安装了mountain lion,还是觉得旧版的系统好看,新的系统太过扁平化了,而且现在许多软件要求都是10.7左右(最低或最高),等到迫不得已的时候再升级吧. 要进行Java开发需要有两个东西, 一个是JRE    JAVA RUNTIME ENVIRONMENT 可以看出,这是一个Java的运行环境,不管你要不要进行开发,你要执行Java程序,就需要有这个东西.所以,这个东西是跨平台的  手机  电脑 ,只要有Java程序运行的地

Java环境----JDK开发环境搭建及环境变量配置

1.啥是jdk? jdk的是java development kit的缩写,意思是java程序开发的工具包. jdk的版本,一共有三种,标准版(j2se),企业版(j2ee),移动设备版(j2me). 普通用户并不需要安装JDK来运行Java程序,而只需要安装JRE(Java Runtime Environment).而程序开发者必须安装JDK来编译.调试程序. jdk组件内容: 2.jdk安装及环境变量配置分几步? 安装JDK 下载网站:http://www.oracle.com/ 环境变量配

安装python,setuptools,get-pip.py,ipython构建python开发环境

安装python,setuptools,get-pip.py,ipython,构建python开发环境 安装环境:Centos6.7 ,安装时选项为桌面,增加了开发工具包. 1.python2.7.11安装 下载源代码: wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz 安装: ./configure make make install 2.安装setuptools wget https://pypi.python.o

安装配置go1.4及eclipse的go开发环境

首先从网上下载 golang 1.4版本 官方:http://code.google.com/p/gomingw/downloads/list 第三方:http://www.golangtc.com/static/go/go1.4.windows-amd64.zip 安装配置go1.4 将解压的go目录放任意目录.默认C:\go 配置系统环境变量:GOROOT 和GOPATH. <1>我们可直接在系统环境变量path添加GOBIN的目录C:\go\bin即可(系统将默认GOROOT:C:\go

01_Android应用开发环境_03_开发环境搭建及简单Android程序

搭建开发环境,创建模拟器,最后完成一个简单的Android版应用程序并介绍项目目录. 1 搭载Android开发环境 1.1 安装Eclipse和ADT     下载Android SDK.SDK的全称是软件开发工具包(Software Development Kit),Android SDK提供了一些开发Android所必须的API库以及开发工具,用于开发测试和调试Android应用程序.ADT是一个Eclipse的插件,它包含了一些使用Eclipse开发Android应用程序所需要的工具包.

从0构建webpack开发环境(三) 开发环境以及 webpack-dev-server 的使用

sourceMap 实际应用开发过程中大部分时间都是处于开发模式中,其中需要频繁的修改代码.调试和打包. 但是打包后的代码多个模块压缩到了一个bundle文件,如果出现警告或者异常很难定位到具体模块和位置,所以webpack提供了source map的配置 devtool, 该配置可选且具有多个配置项 ,具体包含以下: devtool 构建速度 重新构建速度 生产环境 品质(quality) (none) +++ +++ yes 打包后的代码 eval +++ +++ no 生成后的代码 che

一个十分简单的、关于生产环境和开发环境的webpack配置

关于这个开发环境和生产环境的配置代码,之所有要分开是因为他们有些代码相同,有的又不同. 例如:开发模式下需要启动本地服务器,需要热重载,而生产模式不需要这些需要代码压缩.DefinePlugin等. 我们都是将两种环境都用用到的提取出来,放在一个公共.js文件.然后在相应的环境配置中使用  webpack-merge  将公共js合并进来. 我所了解到的配置思路,有两种: 方法一: 使用webpack-dev-server配置开发环境(这个简洁一些): 方法二: 使用webpack-dev-mi

vue中使用axios给生产环境和开发环境配置不同的baseUrl

第一步:设置不同的接口地址 找到文件:/config/dev.env.js 代码修改为: var merge = require('webpack-merge') var prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', //添加 API_ROOT: '"//192.168.1.8/api"' }) /config/prod.env