The following error prompt appears when running Java in CMD after installation of JDK1.5.0
E: /> java Registry key 'Software / JavaSoft / Java Runtime Environment / CurrentVersion' has value '1.4', but '1.5' is required Error:. Could not find java.dll Error: could not find Java 2 Runtime Environment.
This does not change the version number after the upgrade JDK will change the version number. Simply change the value of the currentversion in hkey_local_machine / software / javasoft / java runtime enviroment in the registry to 1.5 by 1.4. Import the bin directory into the path and add lib / dt.jar and lib / Tools.jar in ClassPath.