eclipse出現常見錯誤彙總

1.Syntax error on tokens, delete these tokens

拷貝代碼一部分中文空格沒刪除,就出現這個問題了,一個個刪除就OK了。

2.the eclipse executable launcher was unable locate the shared ...

在eclispe.ini中修改配置文件,原來爲F盤的,改爲當前所在的盤符即可。

3.

Struts2中 出現Exception starting filter struts2 java.lang.NullPointerException 

原因是設置

<constant name="struts.devMode" value="true" />(調試模式)

後,struts有漏洞,tomcat安裝路徑出現空格的時候,會導致此異常拋出。例如我的安裝路徑爲:

C:\Tomcat 6.0\bin 注意 中間有空格 將其改爲

C:\Tomcat6.0\bin 後 重啓tomcat問題解決。

4.tomcat出現404錯誤
應該到tomcat安裝目錄下,查看webapps文件中有無此工程。若不存在,則應該重新加載此工程。
5.在myeclipse中設置tomcat爲調試模式
windows ---preference--tomcat ---launch--debug mode --ok
6.查看myeclipse安裝目錄:
在桌面myeclipse快捷方式上,右鍵屬性。
7.tomcat 類熱部署 親自測試可用

點擊任何一個項目,右鍵,點擊Run as的Run configration,在彈出頁面的argument 標籤頁中的VM arguments 加入下列命令

從網上可以下載破解版本的jrebel。

-noverify

-javaagent:E:\applicationsoft\java\server\apache-tomcat-6.0.33\jrebel.jar           //jrebel.jar 爲放在此目錄,爲破解版 地址
-Drebel.spring_plugin=true                                                                                           //可選項,開啓spring 熱部署
-Drebel.struts2-plugin=true                                                                                           //可選項,開啓struts2 熱部署
8.eclipse調試模式情況下,出現source not found  url not load警告。之後調試頁面卡住不動。
解決方法:windows ---->preference--->java---->Debug-->suspend(推遲 延緩) execution on uncaught excetions。

9.eclipse項目編譯後.class文件所在的路徑:

在WebContent\WEB-INF\classes生成的目錄下。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章