user182944
user182944

Reputation: 8067

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.

Upvotes: 4

Views: 25505

Answers (1)

jithin iyyani
jithin iyyani

Reputation: 771

Try using javaw -jar start.jar

Upvotes: 30

Related Questions