How to generate a war package

Source: Internet
Author: User
Tags plesk
how to make and deploy the common Web site for a war package, many of which are published in the war package. How to make a war package yourself first requires the environment of the war package to be installed j2sdk-1.4.2 above for example, a Plesk server has been installed with J2SDK Switch to J2sdk bin directory, find Jar command on Linux, Jar command is located on:/usr/java/j2sdk1.4.2/bin on win, Jar command is located at: C:/Program files/swsoft/plesk/ Additional/jdk/bin execution JAR-CVF The name of the package to be generated. The directory name to compress for example, to compress subdirectories and JSP files under the C:/test directory, switch to the path where the jar file is located, and type the following command: C:CD c:/test jar-c VF Test.war * Can be obtained in the current directory Test.war then upload test.war to Server ===================================== Deploy War 1 in Tomcat, Copy the war file to the Tomcat directory/webapps/. 2. Copy the necessary jar files to Tomcat how to make and deploy the common Web site for a war package, many of which are published in the war package. How to make a war package yourself first requires the environment of the war package to be installed j2sdk-1.4.2 above for example, a Plesk server has been installed with J2SDK Switch to J2sdk bin directory, find Jar command on Linux, Jar command is located on:/usr/java/j2sdk1.4.2/bin on win, Jar command is located at: C:/Program files/swsoft/plesk/ Additional/jdk/bin execution JAR-CVF The name of the package to be generated. The directory name to compress for example, to compress subdirectories and JSP files under the C:/test directory, switch to the path where the jar file is located, and type the following command: C:CD c:/test jar-c VF Test.war * Can be obtained in the current directory Test.war then upload test.war to Server ===================================== Deploy War 1 in Tomcat, Copy the war file to the Tomcat directory/webapps/. 2. Copy the necessary jar files to Tomcat

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.