Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Background java using command prompt

I run the jetty server using the below command, the server starts and the messages related to server start-up are displayed in command prompt:

java -jar start.jar

What I want:

I want to start the jetty server at the background i.e. the server should get started and no messages should be displayed in the command prompt. Hence I tried out these commands:

start /MIN java -jar start.jar

start /B java -jar start.jar

Cons of this command:

I am able to start the server but the java.exe window opens up displaying all the server startup messages - I don't want the java.exe window to be displayed also.

Please let me know how to start the server in such a way that:

1) The server starts at the background

2) The java.exe window does not gets displayed

Thanks.

like image 473
user182944 Avatar asked Oct 20 '25 12:10

user182944


1 Answers

Try using javaw -jar start.jar

like image 192
jithin iyyani Avatar answered Oct 22 '25 00:10

jithin iyyani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!