I have a rather trivial issue for which I cannot find a solution. I have two versions of Java installed on my local machine namely jdk1.5.0_16 and jdk1.7.0_80, both residing under Program Files. I want to use jdk1.5.0_16 in my Path. But even after I change my path to include jdk1.5.0_16, running "java -version" in command prompt returns jdk 1.7.
Can anyone suggest what I am doing wrong here or how can I change it to point to jdk1.5.0_16?