Publishing a Java Web project

Source: Internet
Author: User

Write your own project, we want to deploy to other computers for others to access.

First install the JDK, and Tomcat. Here my tomcat is free to install version, according to http://www.cnblogs.com/Joanna-Yan/p/4874231.html configuration is OK.

1. Package The project you want to publish into a. WAR package, right-click-->export-->j2ee-->war file (MyEclipse) Next, and select the path you want to export.

2. Place the. War file under your Tomcat's WebApps directory (F:\apache-tomcat-7.0.61\apache-tomcat-7.0.61\webapps).

3. If your tomcat is in the boot state, refresh. Or, if you start Tomcat, there will be one more folder with the same name as the. war file, and the project will be released. http://localhost:8080 Open the page homepage to access the project.

Alternatively, after you have run the project directly in MyEclipse, copy the folder in your own Tomcat WebApps with the same name as your project to the Tomcat WebApps of the computer you want to deploy and run the server directly.

Publishing a Java Web project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.