首页 > 学院 > 开发设计 > 正文

初学Eclipse,完全沒接觸過eclipse的人 不妨看看吧[ZT]

2019-11-18 11:25:08
字体:
来源:转载
供稿:网友

初学Eclipse,完全沒接觸過eclipse的人 不妨看看吧[ZT]

《First-下載》

首先去www.eclipse.org下載eclipse

screen.width-333) {this.width=screen.width-333;this.alt='在新窗口中打开';}" border=0>
在Downloads --> Main Eclipse Download Site --> 3.0 Latest Releases
再依自己的系統下載版本

《Second-安裝》
下載後直接將檔案解壓縮至C:/或其他目錄,會自動產生eclipse的目錄

《Third-開啟》
在eclipse.exe點兩下會產生workspace目錄,往後的專案檔都會預設放置在此
另外也可以將eclipse.exe執行檔和workspace目錄傳送到桌面當作捷徑,方便作業

《Fourth-開始編輯》
1.從File選New-->PRoject

2.選擇java Project按Next輸入Project Name(像是Hello)

3.Project layout 有兩個選項,差別在於第一個會將原始碼與編譯好的程式碼放置在專案目錄下,另一個則是分開放在src與bin資料夾內
4.下一步可先採用預設直接點選Finish
5.完成後,從New --> class

輸入 class name,並自行依需要選擇下面選項,Eclipse就會自動幫你產生一個class檔

像是降~

  Code:[Copy to clipboard]  /*
* Created on 2004/3/22
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
/**
* @author Administrator
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class Hello {
    public static void main(String[] args) {
    }
}

6.現在就可以開始寫程式了
eclipse有一個很棒的功能就是按Alt + /就會有程式碼完成功能


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表