The environment variable are set in 2 places. one in my bash profile and another in the run file of aolserver. In run file the format is different hence it is giving the error.
It is fixed now. Thanks a lot for the help.
Asif.