在程序执行时如何在build.xml中添加java命令参数?
我只能执行我制作的应用程序,在命令行中使用以下命令:
java -jar -Djava.net.preferIPv4Stack=true P2P_network.jar
我想知道,如何将其放入 jar 文件中,以便我可以自动执行它,而不需要进入命令行。
使用的IDE是netbeans。
I can only execute an application i made, with the following command in the command line:
java -jar -Djava.net.preferIPv4Stack=true P2P_network.jar
I would like to know, how can i put this in the jar file, so i can execute it automatically, without needing to go to the command line.
The IDE used is netbeans.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个答案可能会有所帮助。 “dash dee”和“dash enableassertions”都是 VM 选项。
This answer may help. The 'dash dee' and 'dash enableassertions' are both VM Options.