Cannot Execute java programs from the command prompt
I am unable to execute any program in command prompt yet the path is set correctly. Even when i try to execute java version i get 3 errors
1. Error: Failed reading value of registry key: Software\JavaSoft\Java Runtime Enviroment\ Current Version
2. Error: Could not find java.dll
3. Error: Could not find Java SE Runtime Enviroment
Also i cannot run any jar file by double clicking!!:(
What could be the source of all these problems?
Your help will be highly appreciated