JDK 6 Update 7在Linux系统上安装配置
Sun发布的JDK/JRE有两种版本,一种是.rpm.bin格式的,另一种则是.bin格式的,可以到这个页面去下载。
这里,我下载的是.bin格式的,下载下来以后,文件为jdk-6u7-linux-i586-rpm.bin。
安装
首先需要解压缩,如图所示:
第一行命令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]这行时,如图所示:
当然要键入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:
Press Enter to continue.....