Install Sun’s Java Virtual Machine ( J2SE(TM) Development Kit 5.0 Update 9 ) on Fedora Core / Linux platform in 5 simple steps.安裝Sun的Java虛擬機( J2SE的(技術備忘錄)開發工具包5.0更新九日)就淺頂軟呢帽核心/ Linux平台在5簡單的步驟。 The procedure is geared for users having access to Linux box from ssh / telnet only as in a vpn / dedicated web hosting.程序是面向用戶有機會到Linux的方塊從SSH的/ Telnet工作只是作為在一個VPN /專用Web託管。 However it can be used by anyone.但它可用於任何人。

Step 1:第1步:
Login as root (su) and cd to a temporary directory for downloads.以root登入(蘇)和CD到一個臨時目錄下載。 Suppose your user name is john then you can do:假設你的用戶名是約翰,然後你可以做的:

su
cd ~john 裁談會〜約翰

Step 2:第2步:
Download J2SE(TM) Development Kit 5.0 Update 9 as Linux RPM in self-extracting file using wget.下載的J2SE (技術備忘錄)開發工具包5.0更新9隨著Linux在RPM的自解壓縮文件,使用wget 。 To do that first browse to this這樣做,首先瀏覽到這 link鏈接 using your browser.使用您的瀏覽器。 After accepting the license copy the link corresponding to Linux RPM in self-extracting file .之後,接受授權鏈接複製到Linux相應的轉速在自解壓文件

Use wget to copy the link.使用wget複製鏈接。 Specify the output file as wget will be unable to save the default name it generates because it is too long:指定輸出文件作為wget將無法保存的默認名稱它所產生的,因為它是太長:
wget http://192.18.108.145/ECom/EComTicketServlet/…i586-rpm.bin -O jdk-1_5_0_09-linux-i586-rpm.bin wget http://192.18.108.145/ecom/ecomticketservlet/ … i586 - rpm.bin鄰的JDK - 1_5_0_09 - Linux的i586 - rpm.bin

Note: -O specifies the output file as shown above.注: - O的指定輸出文件如上所示。

Step 3:第3步:
Install JVM as follows:安裝的JVM如下:

sh jdk-1_5_0_09-linux-i586-rpm.bin 的SH的JDK - 1_5_0_09 - Linux的i586 - rpm.bin

Step 4:第4步:
Now download現在下載 java-1.5.0-sun-compat-1.5.0.09-1jpp.noarch.rpm爪哇- 1.5.0 -孫- compat - 1.5.0.09 - 1jpp.noarch.rpm using wget.使用wget 。
Install it as follows:它安裝如下:
rpm -i java-1.5.0-sun-compat-1.5.0.09-1jpp.noarch.rpm RPM的我的Java - 1.5.0 -孫- compat - 1.5.0.09 - 1jpp.noarch.rpm

This sets up environment variables, paths, symbolic links etc.這個設置環境變量,路徑,符號鏈接等。

Step 5:第5步:
Create a new console and type java .創建一個新的控制台和類型的Java You should see something like:您應該會看到一些像這樣:

Usage: java [-options] class [args...] 用法: Java的[選項]級[ args ... ]

You are done!你這樣做!