Home  >  Article  >  Java  >  Detailed explanation of Tomcat and activation of MyEclips examples (java)

Detailed explanation of Tomcat and activation of MyEclips examples (java)

Y2J
Y2JOriginal
2017-04-26 11:59:351694browse

This article is a detailed analysis and introduction to Tomcat in Java and activating MyEclips. Friends who need it can refer to it

1. Configure the Tomcat virtual directory
Create the folder "javaweb" on the D drive, and then add the WEB-INF folder and its contents. Create an index.html page and write whatever you want.
Add under the Host node in the full webapps/conf/server.xml under the tomcat installation path:
4da08a83ae3411c09d9f1d973d7aa264
After Type http://localhost:8080/javaweb/ in the browser to get it done. Oh yeah.
2. Configuration for installing Tomcat
The reality is that if you choose to install Windows Service, you do not need to add any environment variables, but the premise is that JDK is installed and configured at the same time Java environment variables:

The code is as follows:

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
I originally thought I needed a registration machine, but after searching on Baidu, someone provided it. I can use it directly and it works.
eclipse
rLR8ZC-855550-6954585325769481

The above is the detailed content of Detailed explanation of Tomcat and activation of MyEclips examples (java). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn