天天看點

Myeclipse配置大全

[size=large][color=blue]1.滑鼠移動後的提示資訊是[/color][/size]

在eclipse(MyEclipse)-->window-->Java-->Editor-->Hovers中配置的 去掉Combined Hover前面的勾号[color=blue][size=large]

2.放大myeclipse的字型:[/size][/color]

Window-->Perferences-->General-->Appearance-->Colors and Fonts-->Basic-->Text Font

[color=blue][size=large]3.提示鍵設定:[/size][/color]

Window-->Perferences-->General-->Keys-->Content Assist-->Unbind Command-->Binding在這裡輸入你想要的鍵-->OK

[color=blue][size=large]4.快速進入項目[/size][/color]

在項目裡按右鍵-->myeclipse-->open in Explorer-->進入項目存放的位置.

[color=blue][size=large]5.在本項目加入自定義包lib[/size][/color]

在本項目右擊項目-->Build Path-->Configure Build Path...-->Libraries-->add Jars..-->選擇你要加入的lib包-->ok

[color=blue][size=large]5.重置視窗到初始視窗[/size][/color]

Window-->Reset Perspective...-->完成了[color=blue]

[size=large]6.設定jsp的字元串[/color][/size]

Window-->Perferences-->MyEclipse Enterprise Workbench-->Files and Editors-->JSP-->Encoding-->chinese, National Standard

[color=blue][size=large]7.正确的項目下有紅色錯誤[/size][/color]

[color=green]主要原因:MyEclipse對裡面的工程檔案進行了多個檔案類型的标簽或錯誤驗證[/color]

Window-->Preferences-->MyEclipse-->Validation-->選中Disable ALL,點選Apply,然後OK,即可[color=green]

次要原因[/color]

可能是你的項目中的jar包與實體上的jar 包不一緻,也就是說,你要删除jar包時不但要在myeclipse中删除,還要在實體磁盤上删除

有紅叉,但是目錄中卻沒有錯誤!

這時我選擇"項目"-"屬性" 打開下面的對話框,發現有一些異常!

大家注意看上面這個圖檔中的net.jar.是在d盤drive下,可是,在我的d盤下并沒有net.jar這個jar包,是以導緻出錯了! 這裡我們選中它,單擊remove 按鈕再重新整理一下項目就可以了!

[color=green]次要原因[/color]

jar包重複,當你添加的jar包重複的時候也會出錯。

web-inf下的lib下的jar包也許重複了,或者是和tomcat\lib下的某個包重複了也會出錯

[color=blue][size=large]8.myeclipse注釋作者的名更換為自己的名[/size][/color]

1.Java -> Code Style -> Code Templates

2.在右側選擇Comments,将其中的Types項,然後選右邊的"Edit",進入編輯模式,将 @author ${user} 中的${user}改成你自己的名字即可。

3.進入編輯模式後就可以自定義注釋了。另外可以插入一些變量,如年、日期等等。

4.最後,確定 Code -> New Java files 中有:"${filecomment}"

[size=large][color=blue]9.在myeclipse下啟動tomcat伺服器時,控制台不顯示任何資訊。隻顯示no consoles display at this time 這種字樣。[/color][/size]

Myeclipse主視窗中找到Run/Stop/Restart MyEclipse Servers圖示-->Configure Server選項--> MyEclipse Enterprise Workbench-->Server-->Tomcat 6-->JDK-->add-->JDK的安裝路徑-->finish

繼續閱讀