(i) Java Project (non-Web project) deployment to Windows Server run

Source: Internet
Author: User

"Turn" http://blog.csdn.net/tracy19880727/article/details/11205063

The general server is running almost all Web projects, and today there is a problem of deploying a well-written Java project to a Windows server.

If there is no dependent jar package and there is only one Java class that contains the main method, the Java class is placed directly on the server through a DOS window (DOS

The window command is as follows: The CD is in the same directory as the. class file, and then executes the Java. class file name, but if a third party that contains a non-JDK comes

Jar package or multiple Java classes then you need to package the Java project into a runnable jar file, the Java project directory structure

The packaging process is as follows:

Select the appropriate project and the jar package to store the path, and after finish, locate the generated jar file in the selected directory under a directory on the server (requires

Remember this directory, which will be used later), the last step is to execute the jar file, open the DOS window input command as follows:

Java-jar + The full path of the jar file that was just placed on the server (note: Two spaces in the command are not limited)

(i) Java Project (non-Web project) deployment to Windows Server run

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.