Hi all, I have came across very silly problem. my jdk1.3 is in C: drive. I have compiled on test.java file from dos prompt. But when i have type C:\>javatest ( to interprete it) it give error as: Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.4', but '1.3' is required. Error: could not find java.dll Error: could not find Java 2 Runtime Environment. In my jdk, dll file and jre are present. where's the problem? Pl. guide me. Thanks in advance. Sandeep Oza
If I were you, I might simply remove/uninstall all JRE installations and then reinstall whatever JRE's I wanted on my system (which may only be one - the newest one). I would also be certain to install the oldest JRE's first and the newest one last.
Hi Sandeep, I have definately faced the same problem. The reason is that you have installed an older version of jdk over the later version. In my case I solved the problem by simply going to the registry and renaming the present version key to ( in your case it would be 1.3 ). As simple as that. It worked form my case ( I had installed 1.2 over 1.3 ). Good luck
posted 17 years ago
Dears.. Dirk and Mohan Thank you for your replys. Actually i have installed jre 1.4 above jre1.3. I have unintalled jre1.4. Now it's working Fine. It was my mistake. Mohan, how to change registry file?, jut for knowledge will you write me in detail, how you change this file? Good Day. Sandeep Oza
Yes, Everything Is Possible
posted 17 years ago
Sandeep, Go to Start -> Run and type regedit then press OK. I don't recommend that you edit your registry, especially if you don't know how to open the registry for editing.
Thank you Dirk, You have given the tip and i have able to do it. In left of regedit window, I clicked on HKEY_LOACAL_MACHINE-->Software-->Java Run time Environment--> clicked on it. In right pane, Name and Data is displayed. Name is current version and data is 1.3. Double click on name and change value... I have learned from you how to edit registry file. Thank you Dear. Good Day. Sandeep Oza