[ubuntu]快快樂樂安裝java6 sdk

很抱歉在ubuntu 裡面預設的java sdk是沒有安裝的,所以因此需要手動安裝。
首先進入到終端機(terminal),接著是快快樂樂安裝四部曲。

首先,加入repository

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
接著將列表更新
<br></br><span style="background-color: yellow; border-collapse: separate; color: black; font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="color: #333333; font-family: Verdana, Tahoma, 'BitStream vera Sans', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 23px; text-align: justify;">sudo apt-get update</span></span><br></br>

再來安裝java sdk

sudo apt-get install sun-java6-jdk sun-java6-plugin 
 最後更新
<br></br><span style="background-color: yellow; border-collapse: separate; color: black; font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="color: #333333; font-family: Verdana, Tahoma, 'BitStream vera Sans', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 23px; text-align: justify;">sudo update-java-alternatives -s java-6-sun</span></span><span style="background-color: yellow; border-collapse: separate; color: black; font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="color: #333333; font-family: Verdana, Tahoma, 'BitStream vera Sans', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 23px; text-align: justify;"> </span></span>
<br></br>
完成,一切順利!快快樂樂的完成了ubuntu的java6 sdk安裝。 

意外處理,當中途出現以下訊息:

 [Press RETURN to try again, ‘no’ + RETURN to abort]

如下圖:

表示缺少jdk-6u10-docs.zip,下載位置於此 
下載完之後,請將檔案放置到~/tmp中,之後回到視窗中,按任意鍵繼續安裝。

祝福大家順利。

參考網址:
瘋人院院長院內消息 
ubuntu.cn

CaesarChi

Web developer, focus on website fullstack, special JavaScript, and love sharing developing experience and communicate with developers. http://about.me/clonn