Finally i came to know what was causing this strange thing from the following link
http://www.oooforum.org/forum/viewtopic.phtml?t=64063
I just did the following things & now everything seems fine
cd /opt/openoffice.org2.3/program
vi soffice
Search for the the following line:
java_ld_library_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS`
and replace it with:
java_ld_library_path=""
Hopes this post will help someone like me ....