Launch .jar files with command line arguments (but with no console window)

后端 未结 3 1336
春和景丽
春和景丽 2021-01-18 03:09

I have to do a demo of an application, the application has a server.jar and client.jar. Both have command line arguments and are executable. I need to launch two instances o

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 03:53

    Alright after tring and cring, here goes my soluction

    @echo off
    start /B javaw -jar -Xms16m -Xmx512m client.jar
    @echo on
    

    I hope it will be usefull for somebody.

提交回复
热议问题