Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to deploy a JAVA project with JAR packages on LINUX

Shulou Source: shulou.com Published: 2022-05-31 11:08:08 09月23日 Update

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.

Tags: Projects directives articles content servers services propriety success engineering ideas plug-ins new knowledge more steps knowledge knowledge points articles details industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn MariaDB Docker Redmi