How to deploy a JAVA project with JAR packages on LINUX
This article is a detailed introduction to "how to deploy JAVA projects with JAR packages on LINUX". The content is detailed, the steps are clear, and the details are properly handled. I hope this article "how to deploy JAVA projects with JAR packages on LINUX" can help you solve your doubts. The following is followed by a small series of ideas to slowly deepen and learn new knowledge together.
Deploying java projects with jar packages on linux
First of all, eclipse needs to install a small plug-in called fat jar.
Click fat jar
Select the main category in the red box and click next
Check the box as shown in the picture
Find the jar package under this path
Put jar package under linux server through ftp protocol
Enter the jar package path
Enter command java -jar xxx.jar
Run successfully!
Attention!!!!!!!!!
When you disconnect the server, the project stops!
So use the following command
Command: nohup java -jar xxx.jar
Pass command ps -ef| grep java can view progress
Read here, this article "how to deploy JAVA projects with JAR package on LINUX" article has been introduced, want to master the knowledge points of this article also need to be used by yourself to understand, if you want to know more about the relevant content of the article, welcome to pay attention to the industry information channel.