Java project war package Method

Source: Internet
Author: User

 

 

I 've been so busy recently. I want to share some tips I 've encountered at work with you, and hope to help my colleagues who have encountered the same troubles.

We know that the war package for the Java project can be automatically packaged in Eclipse and MyEclipse tools, that is, right-click and export the war package, however, I found that a war package in one of my projects encountered some minor problems. After the exported war package was opened, there was a lot of missing content, which obviously caused a problem. So what should we do? I have searched many online remedies for no effect. I have consulted my colleagues and I have never encountered such a situation.

In addition to this method, we can use the doscommand to manually compress the war package:

If you type "jar" again, the following results will be displayed, indicating that the configuration is successful.

Run the doscommand to access your project.

Now, run the command to manually package the package.

Enter the Enter key and wait until it is automatically executed:

 

OK. The package is complete. Now let's look at the war package under the directory.

After the installation is completed, we put it under Tomcat's Webapps, start tomcat, and automatically decompress the package. OK.

 

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.