Run Java console app as a daemon (background)

后端 未结 4 827
生来不讨喜
生来不讨喜 2020-12-14 13:16

I\'ve developed a Java console application that when start, open a console window and remain in foreground, i want to start that application in background .

Now i la

4条回答
  •  粉色の甜心
    2020-12-14 13:44

    If you are doing this in anything unix based then you can append & to the end which will spawn a new thread and keept it running in the background.

    java -jar myapp.jar &
    

提交回复
热议问题