錯誤描述:
MyEclipse中啟動Tomcat(debug)的時候就出現Error starting Tomcat :
A configuration error occured during startup. Please verify the preference field with the prompt: Error opening zip file or JAR manifest missing:D:\Program Files\...這個錯誤,如下圖:
解決方法:
打開MyEclipse,點擊Window->Preferences->MyEclipse Enterprice Workbench->Servers->Tomcat->選擇你的Tomcat(比如Tomcat 7.x)
然后點左邊的三角形->點擊JDK->Optional Java VM arguments如下圖所示:
檢查里面的配置是否含有引入jar包,如果有確認引入路徑中是否有空格,如果有請更改jar所在路徑目錄名,確保路徑中不含空格和中文。
PS:(其他類似Error opening zip file or JAR manifest missing的錯誤解決思路差不多,首先排查路徑下是否包含所需jar文件,然后再檢查路徑是否包含空格和中文)。