你好,游客 登录 注册 搜索
背景:
阅读新闻

JDK 在Linux系统上安装配置[图文]

[日期:2011-01-25] 来源:Linux社区  作者:sherlock82102 [字体:大 中 小]

JDK 6 Update 7在Linux系统上安装配置

Sun发布的JDK/JRE有两种版本,一种是.rpm.bin格式的,另一种则是.bin格式的,可以到这个页面去下载。

这里,我下载的是.bin格式的,下载下来以后,文件为jdk-6u7-linux-i586-rpm.bin。

安装

首先需要解压缩,如图所示:

JDK 在Linux系统上安装配置[图文]

第一行命令chmod +x jdk-6u7-linux-i586-rpm.bin是为将要进行安装的工具包jdk-6u7-linux-i586-rpm.bin授权;第二行解压缩并执行安装,只要你输入命令./jdk-6u7-linux-i586-rpm.bin,就会显示“Sun Microsystems, Inc. Binary Code License Agreement”,的内容,很长的,一直翻页下去,直到显示Do you agree to the above license terms? [yes or no]这行时,如图所示:

JDK 在Linux系统上安装配置[图文]

当然要键入yes了,比需要同意上述的协议才能继续安装。

接着,就开始解压缩软件包,并执行安装过程,如下所示:

Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u7-linux-i586.rpm 
inflating: sun-javadb-common-10.3.1-4.1.i386.rpm 
inflating: sun-javadb-core-10.3.1-4.1.i386.rpm 
inflating: sun-javadb-client-10.3.1-4.1.i386.rpm 
inflating: sun-javadb-demo-10.3.1-4.1.i386.rpm 
inflating: sun-javadb-docs-10.3.1-4.1.i386.rpm 
inflating: sun-javadb-javadoc-10.3.1-4.1.i386.rpm 
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        tools.jar...
        localedata.jar...
        plugin.jar...
        javaws.jar...
        deploy.jar...
Installing JavaDB
Preparing...                ########################################### [100%]
   1:sun-javadb-common      ########################################### [ 17%]
   2:sun-javadb-core        ########################################### [ 33%]
   3:sun-javadb-client      ########################################### [ 50%]
   4:sun-javadb-demo        ########################################### [ 67%]
   5:sun-javadb-docs        ########################################### [ 83%]
   6:sun-javadb-javadoc     ########################################### [100%]

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.....

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款