I have JVM 1.7 installed on my machine and still the emulator complains about it

It says "you will need a java 1.4.1 or later compatible virtual machine installed in your system"
if i type java in my command prompt java is invoked

and I can see jvm in control panel too
any idea why emulator is complaining?