Thanks James. I found out the issue and solved it. Yes, you are right. We are taking input folder name from property file. There was few spaces after the folder name in the property file. In windows, it was working fine. But linux i think, it treated that as the part of the folder name. We tried many ways and finally found the issue.
Thanks a lot for your effort.