歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> JDK 在Linux系統上安裝配置[圖文]

JDK 在Linux系統上安裝配置[圖文]

日期:2017/2/28 16:24:07   编辑:Linux教程

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 ([email protected]).
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.....

Copyright © Linux教程網 All Rights Reserved