Issue with Command Line arguments which got spaces in it

When you pass command line arguments with spaces, they are taken as space separated arguments, and are splitted on space. So, you don’t actually have a single argument, but multiple arguments.

If you want to pass arguments with spaces, use quotes:

java classname "Apple Inc. 2013 Jul 05 395.00 Call"

Leave a Comment