[Solved] Linux Start jar Error: nohup: failed to run command ‘java‘: No such file or directory

This prompt appears when Linux starts the jar package


The server host is transferred from building a to building B, the IP is changed, and the server content is unchanged

Start service prompt nohup: failed to run command ‘Java’: no such file or directory


1. View JDK version
java – version
2. Echo $Java_ Home
view the installation directory
3. Execute startup jar
nohup previous result/bin/Java – jar XX. Jar

Read More: