"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan.
There is an environment variable called "Path". You need to put path JRE path there. If you want to use java 6 then pur JRE for java 6 before java 1.4's JRE.
It works! Thanks. Actually, Oracle installation put the jre1.4 entry in the 'Path' variable.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan.