注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

0与1构筑世界,程序员创造时代

软件架构设计 Java编程

 
 
 

日志

 
 

在Linux上安装JDK  

2008-11-17 14:08:17|  分类: Java |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

预备

SUSE LINUX Enterprise Server 9
jdk-6u10-linux-i586.bin

安装

1、赋予执行权限。
aofeng@suse9dev:~> chmod +x ./jdk-6u10-linux-i586.bin

2、执行安装。
aofeng@suse9dev:~> ./jdk-6u10-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE "DECLINE" BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.

1. DEFINITIONS. "Software" means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you
by Sun under this Agreement.  "General Purpose Desktop
Computers and Servers" means computers, including desktop,
laptop and tablet computers, or servers, used for general
computing functions under end user control (such as but not
specifically limited to email, general purpose Internet
browsing, and office suite productivity tools).
The use of Software in systems and solutions that provide
dedicated functionality (other than as mentioned above) or
designed for use in embedded or function-specific software
applications, for example but not limited to: Software
embedded in or bundled with industrial control systems,
wireless mobile telephones, wireless handheld devices,
kiosks, TV/STB, Blu-ray Disc devices, telematics and
network control switching equipment, printers and storage
management systems, and other related systems are excluded
from this definition and not licensed under this
Agreement.  "Programs" means Java technology applets and
applications intended to run on the Java Platform Standard

Do you agree to the above license terms? [yes or no]yes                  // 输入yes同意上述协议
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
   creating: jdk1.6.0_10/
   creating: jdk1.6.0_10/jre/
   creating: jdk1.6.0_10/jre/bin/
  inflating: jdk1.6.0_10/jre/bin/java 
  inflating: jdk1.6.0_10/jre/bin/keytool 
  inflating: jdk1.6.0_10/jre/bin/policytool 
  inflating: jdk1.6.0_10/jre/bin/rmiregistry 
  inflating: jdk1.6.0_10/jre/bin/rmid 
  ......
  省略
  ......
Creating jdk1.6.0_10/jre/lib/rt.jar
Creating jdk1.6.0_10/jre/lib/jsse.jar
Creating jdk1.6.0_10/jre/lib/charsets.jar
Creating jdk1.6.0_10/lib/tools.jar
Creating jdk1.6.0_10/jre/lib/ext/localedata.jar
Creating jdk1.6.0_10/jre/lib/plugin.jar
Creating jdk1.6.0_10/jre/lib/javaws.jar
Creating jdk1.6.0_10/jre/lib/deploy.jar

Java(TM) SE Development Kit 6 successfully installed.

Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Sun products, services and training
* Access to early releases and documentation

Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK will be presented. If you do not register, none of
this information will be saved. You may also register your
JDK later by opening the register.html file (located in
the JDK installation directory) in a browser.

For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

Press Enter to continue.....

Done.

3、设置环境变量。
aofeng@suse9dev:~> vi .profile
JDK6_HOME=$USER_HOME/jdk1.6.0_10

JAVA_HOME=$JDK6_HOME
export JAVA_HOME

PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export PATH

CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
export CLASSPATH
在Linux上安装JDK - 傲风 - 傲风的博客提示:上述环境变量的设置仅供参考,需根据自己的实际环境作一些调整。

验证

aofeng@suse9dev:~> java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

<正文结束>
文章声明


作者:傲风(aofengblog@163.com)       编写时间:2008年11月17日

网址:http://aofengblog.blog.163.com

作者保留所有权利,转载请保留文章全部内容或者说明原作者和转载地址!

  评论这张
 
阅读(1602)| 评论(1)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017