在eclipse配置tomcat的時候,我發如今Eclipse---Preferences---server---Runtime Environment中,點擊「Add」按鈕,裏面看不到tomcat的,只有個「J2EE Runtime Library」。 java
若是原生的Eclipse沒有Dynamic Web Project, 須要安裝如下plugin. The list is:tomcat
Apache Tomcat的設置eclipse
Setting the JAVA_HOME
, CATALINA_HOME
Environment Variable on Windowside
One can do using command prompt:code
set JAVA_HOME=C:\ "top level directory of your java install"
set CATALINA_HOME=C:\ "top level directory of your Tomcat install"
set PATH=%PATH%;%JAVA_HOME%\bin;%CATALINA_HOME%\bin
OR you can do the same:server
JAVA_HOME
and provide variable value as C:\ "top level directory of your java install"
CATALINA_HOME
and provide variable value as C:\ "top level directory of your Tomcat install"
;%CATALINA_HOME%\bin;
Tipsip
1. 安裝時必定要以管理員權限安裝,不然之後會有權限的麻煩。it
2. 若是在運行時出現Catalina.log <access denied>的error,能夠經過修改Top level tomcat directory權限的方法使用戶得到讀寫權限,進而解決問題。io