Hello Sabya,
Also see the below note :
Note 1522198 How to manually configure an AS Java to use SAP JVM 4.1
You have to check the step 5,6,7,8 & 9 to verify JVM setting are done properly.
Also check the note:
Note:
743583 How to change the JDK of SDM
718901 How to Change the JDK of the J2EE Engine
All these note will help you to resolve the issue.Feedback pls.
Thanks
Haroon Rasheed
AGS