First of all thanks to both of you for answering my question.
But I am still having the same problem.
I downloaded JavaEE + Jdk from the link given below. http://java.sun.com/javaee/downloads/index.jsp
Then three directories were added to c:\ namely jdk, javadb, jbi.
I have checked for other sdk and found jdk1.5 within the bea directory which was for weblogic. I removed this but still not getting help.
Now can you please suggest me what exactly i have to do?