You should still provide a third argument to the command line, but that should point to the directory that contains the top level package, but it shouldn't be the top level package. E.g you have myproject\classes\foo\bar\MyApplication and you are executing the jar command from the myproject folder The third argument should in that case be classes, and it should be e.g. ...