thanks for the reply
how to make sure that it is running in X window environment .
thanks