Thanks all for responding. The error given by java was actually misleading. Though the error mentioned ClassNotFound, the actual issue was in one of the command line parameters which also had a space in it. When I put that in quotes, I got the expected behaviour.