I have a Java program which I\'m executing in a Linux environment through a bash script.
This is my simple bash script, which accepts a String.
#!/bi
This is not a Java issue per se. It's a shell issue, and applies to anything you invoke with such arguments. Your shell is splitting up the arguments and feeding them separately to the Java process.
You have to quote the arguments such that the shell doesn't split them up. e.g.
$ java -cp ... "Apple Inc. 2013"
etc. See here for a longer discussion.