When I compile any java file it is getting compiled properly, but while executing it shows the following error in the command prompt.
Failed reading value of registry key:
Sofware\JavaSoft\Java Runtime Environment\CurrentVersion
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
Failed reading value of registry key:
Sofware\JavaSoft\Java Runtime Environment\CurrentVersion
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.