Srini,
thanks for your reply. But as I had mentioned , I had included the "." in the beginning of the long classpath I had set. That did not work. Only when I removed everything else did it work for me. Also compiling was not a problem in both cases. So I am baffled.