IDEA Export JAR Package

Source: Internet
Author: User
Tags aop

Go to Project Structure > Artifacts-add > JAR > From modules with dependencies ....

Exporting to an executable jar requires the main Class to be set as the entry for the JAR program.

The generic tool jar can be set without the main Class.

Selecting the extract to the target jar will place all the jar references in the BuildPath in a jar

Select Copt to the output directory and link via manifest will follow. MF file in a custom format to package

. MF Complete Example

manifest-version:1.0Class-path:jcl-over-slf4j-1.7.13.jar jackson-databind-2.8.0. Jar Sprin G-data-commons-1.11.4.release.jar spring-expression-4.0.4. Release.jar JUnit-3.8.1.jar Spring-tx-4.0.4.release.jar commons-beanutils-1.8.3. Jar MyBatis-spring-1.2.2.jar Ojdbc14-10.2.0.1.0.jar itext-2.1.7. Jar J Ackson-mapper-asl-1.9.13.jar Spring-beans-4.0.4.release.jar commons-L ogging-1.2.jar Commons-dbcp-1.4.jar Freemarker-2.3.20.jar mybatis-3.2 .8.jar Jsf-impl-1.2_04.jar Spring-aop-4.0.4.release.jar log4j-1.2.17. Jar Druid-1.0.23.jar spring-context-support-4.1.6. Release.jar Commons-collections-3.2.1.jar Aopalliance-1.0.jar ehcache-core-2.6.8. Jar BCM ail-jdk14-138.jar Jackson-annotations-2.8.0.jar mybatis-ehcache-1.0.3. Jar Spring-core-4.1.4.release.jar commons-fileupload-1.2.2. Jar POI.J ar jstl-1.2.jar Itext-2.1.7.jar Junit-3.8.1.jar druid-1.0.23. Jar Log4 J-1.2.17.jar Mybatis-3.2.8.jar Commons-io-2.4.jar fastjson-1.2.3. Jar Itextpdf-5.5.4.jar Jsf-api-1.2_04.jar Aopalliance-1.0.jar Jsf-impl-1. 2_04.jar Bcmail-jdk14-138.jar Bcprov-jdk14-138.jar bctsp-jdk14-1.38. J ar Commons-dbcp-1.4.jar Slf4j-api-1.7.13.jar bcmail-jdk14-1.38. jar BC Prov-jdk14-1.38.jar Commons-lang3-3.4.jar freemarker-2.3.20. Jar Commo NS-pool-1.5.4.jar Ehcache-core-2.6.8.jar jackson-core-2.8.0. Jar Ojdbc14-10.2.0.1.0.jar Aspectjweaver-1.8.4.jar commons-logging-1.2. Jar Myb Atis-spring-1.2.2.jar Jcl-over-slf4j-1.7.13.jar mybatis-ehcache-1.0.3. Jar Jackson-databind-2.8.0.jar Commons-beanutils-1.8.3.jar jackson-C Ore-asl-1.9.13.jar Javax.servlet-api-3.0.1.jar spring-tx-4.0.4. Releas E.jar Commons-fileupload-1.2.2.jar spring-aop-4.0.4. Release.jar Sprin G-web-4.0.4.release.jar Commons-collections-3.2.1.jar jackson-Annotat ions-2.8.0.jar Jackson-mapper-asl-1.9.13.jar spring-core-4.1.4. Releas E.jar Spring-jdbc-4.0.4.release.jar spring-test-4.0.4. Release.jar SPR ing-beans-4.0.4.release.jar Spring-webmvc-4.0.4.release.jar spring-Co ntext-4.0.4.release.jar Spring-expression-4.0.4.release.jar spring-da ta-commons-1.11.4.release.jar spring-context-support-4.1.6. Release.ja R itextpdf-5.5.4.jar Commons-lang3-3.4.jar Bctsp-jdk14-1.38.jar Jstl-1.2.jar Bcprov-jdk14-138.jar Spring-jdbc-4.0.4.release.jar spring-Web-4.0.4.release.jar Poi.jar Spring-webmvc-4.0.4.release.jar bcmail-JDK14-1.38.jar Javax.servlet-api-3.0.1.jar Jsf-api-1.2_04.jar commons-Po ol-1.5.4.jar Bcprov-jdk14-1.38.jar Fastjson-1.2.3.jar jackson-core-2. 8.0.jar Slf4j-api-1.7.13.jar Commons-io-2.4.jar spring-test-4.0.4. REL Ease.jar Jackson-core-asl-1.9.13.jar Aspectjweaver-1.8.4.jar spring-C Ontext-4.0.4. Release.jarmain-class:

IDEA Export JAR Package

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.