When you implement executable jar, there is some good libraries and Maven plugins to implement. I will list them and explain how to use. args4j args4j is a good library to parse command line argument. It is more modern than commons-cli, and its committer is Mr.KAWAGUCHI the author of Jenkins, so its improving speed is good: your patch will be checked and merged (here is my case). config loader For