Home > Java > javaTutorial > body text

How to deploy JAVA project with JAR package on LINUX

WBOY
Release: 2023-05-23 14:13:06
forward
1369 people have browsed it

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!