This is usually caused by a bad version of Java being installed on your machine.
Try updating your Java install to the latest version and this will generally solve this issue.
or you can try it :
Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M
Variable name: Path
Variable value: ;C:\Program Files\Java\jre6\bin;F:\JDK\bin;
Change this to your appropriate path.