开发者

Executing jar with file names as arguments

I want to run a jar with file names as arguments. for eg.

java -jar xyz.jar "C:\files" where "C:\files" directory contains all the files.

开发者_StackOverflow社区Can anybody help me with this?


What does the main class in the xyz.jar do?

Does it main method accept file names as arguments?

Does it understand that if the argument is a directory name, it needs to get the list of files in the directory and perform the operation on them instead?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜