簡單總結一下myeclipse首次使用的配置,eclipse類似。總結的不是很全面,如有新的看法,歡迎下方留言。
1、首先要激活,激活后查看 myeclipse-subscription information是否成功。myeclipse、eclipse程序及激活工具下載:點我
2、設置字符編碼
window -> PReferences -> general -> Workspace -> Text file encoding選擇Other,將新建工程屬性編碼改變為UTF-8。
window -> Preferences -> general -> Content Types選擇Text樹,點開,選擇java Source File。在下面的Default encoding輸入框中輸入UTF-8,按下Update按鈕,則設置Java文件編碼為UTF-8。
3、字體大小 背景顏色設置
window -> Preferences -> general -> appearance -> colors and fonts -> basic 最后fonts一項,設置,字體大小為12
window -> Preferences -> general -> editors -> text Editors ->background colors 去掉對勾,設為護眼綠。修改 R: 204 G: 232 B: 207 或者 色調:85;飽和度:123;亮度:205即可
4、設置自動提示
Windows→Preferences→Java→Editor→Content Assist;修改Auto Activation triggers for java的值為:.abcdefghijklmnopqrstuvwxyz(,
5、設置java源碼--也可以不設 用的時候添加
windows--preferences--Java--installed jres --選中jre6--點擊右邊的edit--選中jre6/lib/rt.jar
點擊右邊的 source attachment configuration -- external file selection --找到你的jdk下的src.zip文件,選擇添加即可
6、添加jre、tomcat
在搜索框搜索installed JREs 、Tomcat。添加相關文件到myeclipse上。
7、設置創建jsp頁面默認編碼設為UTF-8:
Window -> Preferences -> MyEclipse -> Files and Editors -> JSP,將"Encoding"選為"ISO10646/Unicode(UTF-8)
8、關閉自動更新:
Eclipse:首先進入Windows –> Perferences–> Install/Update -> Automatic Updates,不要勾選"Automatically find new updates and notify me"。Myeclipse:Windows –> Perferences–> MyEclipse... -> Maven4MyEclipse,不要勾選"Download repository index updates on startup" 。
1、從外部導入工程到myeclipse8.5報錯:Background Indexer Crash Recovery java.lang
Help > MyEclipse Configuration Center > Dashboard tab在Add-ons下取消勾選:"MyEclipse IE Javascript Debugger (Windows Only)"重啟 在右下方的掛起面板(Pending Changes)選擇:Apply 1 change 稍等···2、關于JPEGImageEncoder的問題
修改Windows-Preferences-Java-Compiler-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)選為Warning就可以編譯通過了,是eclipse的設置問題。
3、org.apache.jasper.JasperException: Unable to compile class for JSP
【Window】->【Preferences】->【Java】->【Compiler】->【JDK Compliance level】->1.4調高到1.6編譯版本
將項目和tomcat下的web->web->web-info->lib中的jsp-api.jar和servlet-api.jar刪除,重啟服務器,重新運行
新聞熱點
疑難解答