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

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

初学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

screen.width-333) {this.width=screen.width-333;this.alt='在新窗口中打开';}" border=0

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

screen.width-333) {this.width=screen.width-333;this.alt='在新窗口中打开';}" border=0

3.Project layout 有兩個選項,差別在於第一個會將原始碼與編譯好的程式碼放置在專案目錄下,另一個則是分開放在src與bin資料夾內

4.下一步可先採用預設直接點選Finish

5.完成後,從New --> class

screen.width-333) {this.width=screen.width-333;this.alt='在新窗口中打开';}" border=0

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

screen.width-333) {this.width=screen.width-333;this.alt='在新窗口中打开';}" border=0

像是降~

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 + /就會有程式碼完成功能

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航