Runnable jar with jvm args

前端 未结 1 1569
耶瑟儿~
耶瑟儿~ 2020-12-19 06:06

I was trying to create a runnable jar file using Eclipse.
The problem is that the vm parameters I have added to the run configuration in the Eclipse were not saved in an

相关标签:
1条回答
  • 2020-12-19 06:27

    Briefly, you can't do this without some form of wrapper. You can write a .bat file and/or a .sh script to invoke the JVM with appropriate settings.

    You may also want to check out JavaServiceWrapper, which provides a means to wrap a .jar with executable params and let it run as a standalone or service (despite its name). It has a set of features to allow you to control the JVM execution in a variety of fashions.

    0 讨论(0)
提交回复
热议问题