I guess it is because you're not properly addressing the problem at hand, you're merely providing a workaround.
A proper answer would be something like this:
You're getting an ArrayIndexOutOfBoundsException
because you're accessing the command line arguments without checking that there actually are any.
You need to check whether the user provided the proper arguments, and if not, print a message how to call the executable.
[code showing how to do so]
When debugging, you can pass command line arguments to your application like this:
[your current answer]
Also, you're answering a question that has about five thousand duplicates, which usually isn't really appreciated of users with more than 2K reputation. At least not by me.
In addition to that, as pointed out in comments here: you're abusing inline code
to highlight random terms, which also isn't appreciated (see When should code formatting be used for non-code text?).