= 基於 Netbeans IDE 6.9.1 正體中文版 安裝 !KamaSphere Studio 社群版 = [[PageOutline]] == 步驟一:安裝 Sun JDK == * 這裡以 Ubuntu 10.04 的環境為例,您可以用以下指令進行安裝 {{{ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo apt-get update cat << EOF | sudo /usr/bin/debconf-set-selections sun-java6-bin shared/accepted-sun-dlj-v1-1 select true sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true sun-java6-jre shared/accepted-sun-dlj-v1-1 select true EOF sudo apt-get -y install sun-java6-jdk sun-java6-plugin }}} == 步驟二:安裝 Netbean IDE 6.9.1 正體中文版 == * 您可以到 http://netbeans.org/downloads 下載,或者執行以下的指令 * [[Image(NCHCCloudCourse100928/Netbeans:NetBeans-Download.png,width=600)]] {{{ wget http://bits.netbeans.org/netbeans/6.9.1/community/final/bundles/netbeans-6.9.1-ml-javase-linux.sh chmod a+x netbeans-6.9.1-ml-javase-linux.sh sudo ./netbeans-6.9.1-ml-javase-linux.sh }}} * 接著您可以看到 Netbeans 的安裝畫面,按『下一步(N)』繼續安裝。 * [[Image(NCHCCloudCourse100928/Netbeans:NetBeans-1.png,width=600)]] * 勾選『我同意授權合約中的條款』,並按『下一步(N)』繼續安裝。 * [[Image(NCHCCloudCourse100928/Netbeans:NetBeans-2.png,width=600)]] * 系統會自動偵測 JDK 安裝路徑,若您沒有正確安裝 JDK 的話,這個步驟會出現錯誤訊息。若確認安裝路徑無誤,按『下一步(N)』繼續安裝。 * [[Image(NCHCCloudCourse100928/Netbeans:NetBeans-3.png,width=600)]] * 按一下『安裝(I)』,開始進行安裝程序。 * [[Image(NCHCCloudCourse100928/Netbeans:NetBeans-4.png,width=600)]] * 您可以看到安裝程序進行的狀況,如下圖所示。 * [[Image(NCHCCloudCourse100928/Netbeans:NetBeans-5.png,width=600)]] == 步驟三:安裝 !KarmaSphere Studio 外掛程式 == * 安裝後,您應可於程式選單找到 Netbeans IDE 的項目,啟動 Netbeans IDE,並選擇『工具(T)』->『外掛程式(G)』。 * 切換到『設定』分頁,並點選『加入(A)』按鍵。 * [[Image(NCHCCloudCourse100928/Netbeans:Netbeans-Plugins.png,width=600)]] * 於自訂外掛程式名稱填入:!KarmaSphere Studio Plugin * 於自訂外掛程式網址填入:http://hadoopstudio.org/updates/updates.xml * [[Image(NCHCCloudCourse100928/Netbeans:Netbeans-Define-Plugin.png,width=600)]] * 完成後,暫時將其他外掛程式的 checkbox 取消,只留下 !KarmaSphere Studio Plugin 的選項 * [[Image(NCHCCloudCourse100928/Netbeans:Netbeans-Uncheck-Plugins.png,width=600)]] * 切換到『可用的外掛程式』分頁,勾選四個外掛程式,並按下下方的『安裝(I)』按鈕。 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere-0.png,width=600)]] * 將顯示欲安裝的外掛程式清單,按『下一步』繼續安裝外掛程式。 * [[Image(NCHCCloudCourse100928/Netbeans:Karmasphere-1.png,width=600)]] * 接著會出現授權資訊,勾選『我接受所有授權合約中的條款(A)』,並點選『安裝(I)』繼續安裝外掛程式。 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere-2-1.png,width=600)]] * 畫面上將顯示安裝的進度,亦可勾選『在背景執行(R)』。 * [[Image(NCHCCloudCourse100928/Netbeans:Karmasphere-2.png,width=600)]] * 首次安裝時,會出現警告外掛程式以簽署但不受信任的對話框,點選『繼續(C)』往下執行。 * [[Image(NCHCCloudCourse100928/Netbeans:Karmasphere-3.png,width=600)]] * 安裝完畢後必須重新啟動 Netbeans IDE 才能生效,因此建議選擇『Restart IDE now』,並按下『完成(F)』以重新啟動開發介面。 * [[Image(NCHCCloudCourse100928/Netbeans:Karmasphere-4.png,width=600)]]