Home >Java >javaTutorial >How to deploy JAVA project with JAR package on LINUX

How to deploy JAVA project with JAR package on LINUX

WBOY
WBOYforward
2023-05-23 14:13:061455browse

Deploying java projects with jar packages on linux

How to deploy JAVA project with JAR package on LINUX

First of all, a small plug-in must be installed on eclipse, called fat jar

How to deploy JAVA project with JAR package on LINUX

Click on fat jar

How to deploy JAVA project with JAR package on LINUX

Select the main class in the red box and click next

How to deploy JAVA project with JAR package on LINUX

such as Check the checkmark

How to deploy JAVA project with JAR package on LINUX

How to deploy JAVA project with JAR package on LINUX

and find the jar package in this path

How to deploy JAVA project with JAR package on LINUX

Place the jar package under the linux server through the ftp protocol

How to deploy JAVA project with JAR package on LINUX

Enter the jar package path

How to deploy JAVA project with JAR package on LINUX

Enter the command java - jar xxx.jar

How to deploy JAVA project with JAR package on LINUX

#Run successfully!

Notice! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

When you disconnect from the server, the project will stop!

So use the following command

How to deploy JAVA project with JAR package on LINUX

Command: nohup java -jar xxx.jar

How to deploy JAVA project with JAR package on LINUX

You can view the process through the command ps -ef | grep java

The above is the detailed content of How to deploy JAVA project with JAR package on LINUX. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete