使用maven+springmvc+eclipse軟體安裝配置過程中的問題:
1、eclipse總是卡死的解決辦法:
一:記憶體不足是以會卡死,配置一下eclipse.ini修改這幾個值就好了-xx:maxpermsize=768m-xms1024m-xmx3072m搜尋
二:修改window->preferences --- > java->edittor->hovers,将右側所有複選框清空。
2、因為eclipse上一次未正常關閉,導緻啟動卡死,錯誤日志為:
[plain] view plaincopy
01.!entry org.eclipse.core.resources 210035 2011-05-01 17:22:09.964!message the workspace exited with unsaved changesin the previous session; refreshing workspace to recover changes.
解決方法:
01.到<workspace>\.metadata\.plugins\org.eclipse.core.resources目錄,删除檔案.snap
或者直接将目錄整個删除
3:導入一個maven工程後一直顯示importing maven projects 10%
解決辦法如下:
找到eclipse.ini
加入
-vm
c:\program files (x86)\java\jdk1.7.0_25\bin\javaw.exe
再次重新開機eclipse即可
4.取消eclipse中的校驗問題
一:打開eclipse 菜單欄裡的window右鍵選擇preferences:選擇validation,把你不需要驗證的去掉勾就可以了,點選ok。
5.eclipse中去除js(javascript)驗證錯誤
對eclipse去除js(javascript)驗證錯誤的介紹。在eclipse中,js檔案常常會報錯。可以通過如下幾個步驟解決
第一步:
去除eclipse的js驗證:
将windows->preference->javascript->validator->errors/warnings->enable javascript sematic validation前面的勾去掉;
第二步:
右鍵項目 -> properties -> builders去掉javascriptvalidator前面的勾
如果builders中沒有javascript validator這一項。那麼去.project檔案中修改如下内容:
找到項目目錄,删除項目目錄裡的 .project檔案中的以下部分:
<buildcommand>
<name>org.eclipse.wst.jsdt.core.javascriptvalidator</name>
<arguments></arguments>
</buildcommand>
和<nature>org.eclipse.wst.jsdt.core.jsnature</nature>
注意,修改.project檔案可能會要求重新開機eclipse,或者在eclipse中關閉該工程,然後重新打開工程。
第三步:
複制該js檔案到某個地方,然後從eclipse中直接删除了報錯的js檔案,錯誤消失,再把剛才那個js檔案拷進來。
如果以上做了之後還不對的吧,就在eclipse中打開problems view,選中相關的錯誤,根據提示,進行解決。
xml字型大小的調整
xml檔案字型大小的調整: window / preferences / general / appearance / colors andfonts / basic / "text font " ,然後點選edit,可以設定字型的大小。
在eclipse下安裝tomcat插件使開發,編譯,釋出變的相當的簡單,下面就說一下安裝的過程,很簡單的:
1.先下載下傳一個tomcat插件
位址:http://www.eclipsetotale.com/tomcatplugin/tomcatpluginv321.zip
2.下載下傳完後将zip進行解壓,解壓的内容放在eclipse下的plugin目錄下
3.在links目錄下建立一個tomcat.link檔案内容為plugin下tomcat插件的目錄如
f:\eclipse\plugins\com.sysdeo.eclipse.tomcat_3.2.1
4.配置完後打開eclipse就會出現tomcat小圖示了,然後在windows->preferences裡配置一下tomcat
這樣插件的完裝過程就結束了,是不是很簡單呀,其它的插件也可參考這樣的安裝方法
//ps eclipse-jee-juno-sr1-win32沒有links直接放到plugin下即可
7.maven報以下錯誤的解決方案:
解決辦法是:
把javabuild path裡面的libraries中的jre system libraries(jre7)改為jdk7
windowsàpreferencesàjavaàinstalled jresà
配置的時候要配置eclipse中的maven-àuser settingsà
8.使用maven插件的方式整合maven,maven插件為maven-eclipse_plugin.zip:
把它解壓到d:\myplugin\maven中,截圖如下:
編寫eclipse下的.link,截圖如下:
9.maven運作配置(右擊pom.xml-àrun asàrun configurations得到如下):
修改方法:
window-->preferences-->javascript--->editor-->mark occurrences
将mark occurrences of the selected element in the current file的勾去掉,應用儲存後即可。
eclipse中顯示怪異符号
window->preferences
然後樹形菜單裡選擇
general->editors->texteditors
在右邊把show whitespace characters 取消選擇
解決myeclipse 總是不停的在 update index :
最近将myeclipse升到7.0,發現啟動之後myeclipse總是不停的在update index...(以前的版本可能也有,本人呢沒太注意)
研究發現update index...是maven在下載下傳更新,解決辦法如下:
window --> preferences --> myeclipse enterprise workbench --> maven4myeclipse --> maven --> 去除download repository index updates on startup前的勾選即可。