


How to run jar package in linux system?
When we need to run a Java program developed on Windows on Linux, we need to package the Java program into a jar package and upload it to Linux.
The following are several ways to start jar packages in the background under Linux:
Method 1:
java -jar xxx.jar &
& means running in the background, the ssh window is not locked, but when the window is closed , the program will still exit.
Method 2:
nohup java -jar xxx.jar &
nohup means running the command line without hanging up. When the account exits or closes the terminal, the program will still run.
When a job is executed with the nohup command, all output of the job is redirected to the nohup.out file, unless an output file is otherwise specified.
Method 3:
nohup java -jar xxx.jar >/usr/local/temp.txt &
> /usr/local/temp.txt means recording all startup log information into the temp.txt file.
Recommended tutorial: linux tutorial
The above is the detailed content of How to run jar package in linux system?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to import jar packages in eclipse: 1. Create a new Java project; 2. Create a library folder; 3. Copy the jar package to the library folder; 4. Configure the project build path; 5. Add the jar package to the build path. ; 6. Configure the project build path; 7. Verify the import results; 8. Precautions; 9. Other import methods; 10. Clean and update; 11. Maintain and update the library. Detailed introduction: 1. Create a new Java project, start Eclipse IDE, select the "File" menu in the top menu bar, etc.

The steps for maven to import a jar package: 1. Download the jar package; 2. Create a Maven project; 3. Add dependencies; 4. Add dependency elements; 5. Save the pom.xml file; 6. Build the project; 7. Verify the import. Detailed introduction: 1. Download the jar package. First download the required jar package from the relevant website or source code warehouse. Make sure that the downloaded jar package is compatible with your project and meets the required version requirements; 2. Create a Maven project. If There is no Maven project yet, you need to create one first and so on.

Title: Maven Advanced Tutorial: In-depth exploration of various methods of Jar package import. As a Java project management tool, Maven is widely used in project construction, dependency management, etc. In the actual development process, we often use Jar packages of various third-party libraries, and how to effectively import Jar packages has become a skill that must be mastered. This article will delve into the methods of importing Jar packages in Maven, including using local Jar packages, remote warehouse Jar packages, and custom Jar packages, and give specific details.

MySQL Jar package usage guide and precautions MySQL is a commonly used relational database management system. Many Java projects use MySQL as the backend for data storage. In a Java project, to interact with the MySQL database, you need to use the Java driver (i.e. Jar package) provided by MySQL. This article will introduce the usage guidelines and precautions for the MySQL Jar package, and provide specific code examples to help readers better use the MySQL driver. 1. M

Maven Getting Started Guide: How to correctly import Jar packages? Maven is a powerful project management tool that can help developers manage project dependencies, build projects, etc. During project development, we often need to import external Jar packages to implement some functions. This article will introduce how to use Maven to correctly import Jar packages and provide specific code examples. First, we need to add dependencies on the required Jar packages in Maven's pom.xml file. In pom.xml, there is a

The Jar package of MySQL refers to the Java driver package used to connect and operate the MySQL database. In Java development, the interaction function with the MySQL database needs to be implemented through the Jar package. MySQL's Jar package provides a series of classes and methods that allow developers to easily connect to the MySQL database, execute SQL statements, obtain query results, and other operations. Under normal circumstances, developers can download the MySQL Jar package through the official website or Maven repository and other channels, and then

Vulnerability description: On November 11, 2019, security engineer Henry Chen disclosed a vulnerability that allows Apache Flink to upload jar packages without authorization, leading to remote code execution. Since Apache Flink Dashboard can be accessed without authentication by default, a shell can be obtained by uploading a malicious jar package and triggering the execution of malicious code. Scope of influence Export (export) b. Then select java-->RunnableJARfilec. Then select the corresponding java project, export path and export file name image. This will generate a rebound shell jar package msf to generate jar horse: (1) Use msfvenom afterlife

To understand the MySQL Jar package and its functions, you need specific code examples. MySQL is a popular relational database management system used to store and manage data. To interact with a MySQL database, we usually need to use the MySQL Java Database Connectivity (JDBC) driver, also known as the MySQL Jar package. The MySQL Jar package provides the classes and methods required to connect and operate with the MySQL database. MySQL's Jar package usually ends with mysql-conn
