To package Java project as a jar package, several demos of Web project packaged as a war package __web

Source: Internet
Author: User

to package Java projects as jars

First Type: MyEclipse packages Java projects into jars.

1, right click on the item, select Export.

2, click Java, select Jar file.

3, browse the saved path of the packaged jar in the jar file text, and then next.

completed.


The second type:ant packs Java projects into jars.

Please refer to: I write ant article ant: Getting Started demo (Project,target,delete,mkdir,fileset,antcall,javac,classpath,jar ...) 》

 

   

Package Web project as a war package

First Type: myeclipse The Web project project into a jar.

1, right click on the item, select Export.


2, click Java, select War file, and then next.


3, select the packaged Web project, browse to save the path, and then next.

completed.


The second type:ant packs the Web project into a war package.

        Please refer to: My ant article "How to package Web project as a war package with Ant"
    

Related Article

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.