How to publish a web project in Eclipse and publish a web project in eclipse
Directory structure:
Contents structure [-]
Eclipse 4.4.0 Web Release Procedure
Note:
ReferencesDownload and configure JDK in the required environment
For more information, see JDK installation and configuration.
Download and configure Tomcat
For more information, see Tomcat download and configuration.
Download Eclipse
For more information, see the Eclipse official website.
Step 1 of Eclipse 4.4.0 Web Release: Create a server
Click "File-new-server"
Click "next" and introduce the corresponding tomcat and jre.
2. Configure the server
Open servers, right-click the server, and click "open". Follow the changes.
Note:
- To use a JSP file, copy The server-api.jar package to The lib directory of The project, otherwise The error "The superclass" javax. servlet. http. httpServlet "was not found on the Java Build Path", the server-api.jar package can be found in the lib directory under the server
- Tomcat 8.0 and above have requirements for Eclipse. If "The Apache tomcat installation at this directoryis version 8.5.6.A Tomcat 8.0 installation is expected" appears during Tomcat import. you can download the latest version of eclipse or the old version of tomcat. I have tested that Tomcat 7.0.55 and eclipse4.4 can be used together.
References
Http://www.cnblogs.com/ywl925/p/3815173.html
This article is an original blog article. If you need to reprint it, please indicate the source.