从批处理文件运行 .jar [英] Run .jar from batch-file
本文介绍了从批处理文件运行 .jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个可执行的 .jar
文件.如何在不提及类路径的情况下使用批处理文件执行 .jar
?
I have created an executable .jar
file. How can I execute the .jar
using a batch-file without mentioning a class path?
推荐答案
在 Windows 上,您可以使用以下命令.
On Windows you can use the following command.
start javaw -jar JarFile.jar
这样做后,命令提示符窗口不会保持打开状态.
By doing so, the Command Prompt Window doesn't stay open.
这篇关于从批处理文件运行 .jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文