简体   繁体   English

是否可以仅使用文件名和参数来运行Java文件?

[英]Is it possible to run a java file with just the file name and arguments?

I understand this is how you would normally run a java program: 我知道这是您通常运行Java程序的方式:

java filename arg0 arg1 arg2

Is it possible to create an executable file or some file that can run the program like this: 是否可以创建可执行文件或某些可以运行以下程序的文件:

shortcutName arg0 arg1 arg2

Thanks in advance. 提前致谢。

A batch or shell script? 批处理或Shell脚本? Launch4J? Launch4J?

看看启动器解决方案,例如Launch4j

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM