"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