简体   繁体   中英

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 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? Launch4J?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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