每次配置都要百度,總也是記不住,暫且寫個例子當做紀念。
---實話:我就是愛用MyEclipse 8.5 呀。
1、打開Window-->Preferences 如下圖:
2、再搜索框中輸入: tomcat,找到Tomcat 6.x 並點擊Launch,這是可以先在填寫tomcat6的地址,並將狀態
更改為enable后,點擊apply。如此后續的參數會自動生成
3、修改tomcat設置server、Arguments、ClassPath
這是我的參數:貼出來方便復制粘貼
-Dcatalina.home=D:"/softs/apache-tomcat-7.0.75"
-Dcatalina.base=D:"/softs/apache-tomcat-7.0.75"
-Djava.endorsed.dirs=D:"/softs/apache-tomcat-7.0.75/common/endorsed"
-Djava.io.tmpdir=D:"/softs/apache-tomcat-7.0.75/temp"
-Djava.library.path=C:"/Program Files/Java/jdk1.7.0_51/bin;D:/softs/apache-tomcat-7.0.75/bin"
-Dsun.io.useCanonCaches=false
5、都設置完畢以后,點擊apple。截圖中apple由於已經點擊過,所以會是灰色。
6、啊哈,現在設置的窗口都沒在了。打開server窗口看下,tomcat 7.x 赫然躺在那里,太好了。