Java, Tomcat and activate MyEclips
1. configure Tomcat virtual directory
create a folder on the D drive "javaweb", and then add the WEB-INF folder and its contents . Create index.html page , just write about .
tomcat installation path in full webapps / conf / server.xml in the Host node add the following :
after typing in the browser http://localhost:8080/ javaweb / to get. Oh well .
2. install Tomcat 's configuration
reality is that if you choose to install Windows Service not need to add any environment variables , but the premise is to install the JDK, also configure the Java environment variables :
a. classpath
.; C: \ Program Files \ Java \ jdk1.7.0_21 \ lib \ tools.jar; C: \ Program Files \ Java \ jdk1.7.0_21 \ lib \ dt.jar;
b. JAVA_HOME
C: \ Program Files \ Java \ jdk1.7.0_21
c. path
% JAVA_HOME% \ bin;% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ jre \ bin;% CATALINA_HOME% \ lib;% CATALINA_HOME% \ lib \ servlet-api.jar;% CATALINA_HOME% \ lib \ jsp-api.jar
3. activate MyEclips
originally thought also needs RI, Baidu, was provided to , and used directly , is available.
eclipse
rLR8ZC-855550-6954585325769481
4. associated Tomcat to MyEclips
see my files "myeclips6.0 configuration . zip", in addition to the problems described in the article there are still questions : is to run Tomcat encountered a problem : Exception in thread "main" java.lang.NoClassDefFoundError: org / apache / juli / logging / LogFactory ", approach is in the Tomcat configuration page in the Path to add " ... / tomcat7.0/bin/tomcat-juli.jar ".
没有评论:
发表评论