In depth understanding based on Java Tomcat and activating MyEclips

  • 2020-04-01 01:57:05
  • OfStack

1. Configure the Tomcat virtual directory
Create the folder "javaweb" in disk D, then add the web-inf folder and its contents. Create an index.html page and write whatever you want.
Add the Host node below the full webapps/conf/server.xml in the tomcat installation path:
< The Context path = "/ javaweb" the docBase = "D: \ javaweb / >"
After typing in http://localhost:8080/javaweb/ in your browser. Oh, too.
2. Install Tomcat configuration
The reality is that you don't need to add any environment variables if you choose to install Windows Service, but only if you have JDK installed and Java environment variables configured:

a. classpath 
.;C:Program FilesJavajdk1.7.0_21libtools.jar;C:Program FilesJavajdk1.7.0_21libdt.jar; 
b. JAVA_HOME 
C:Program FilesJavajdk1.7.0_21 
c. path 
%JAVA_HOME%bin;%JAVA_HOME%libdt.jar;%JAVA_HOME%jrebin;%CATALINA_HOME%lib;%CATALINA_HOME%libservlet-api.jar;%CATALINA_HOME%libjsp-api.jar

3. The activation of MyEclips
Originally thought also need to register the machine, baidu, someone provided to take direct use, available.
The eclipse
RLR8ZC - 855550-6954585325769481

Related articles: