从批处理文件运行的.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屋!
查看全文