I had installed jdk-6u18-windows-i586 on my machine. Later on I uninstalled it and installed jdk 1.5.0_13 instead.
Now when I do javac -version I get
jdk 1.5.0_13
But when I do java -version I get
java version "1.6.0_19"
How do I fix this?
|
I had installed jdk-6u18-windows-i586 on my machine. Later on I uninstalled it and installed jdk 1.5.0_13 instead. Now when I do javac -version I get
But when I do java -version I get
How do I fix this?
| |||
|
show 4 more comments
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Remove the java s/w in the registers by going the "regedit" from the run command. Later u install the jdk 1.5.0_13 of java it will work. | |||
|
feedback
|
|
Multiple JREs and JDKs can be installed on one machine. You are having JDK 1.5, but you have JRE 1.6.0_19. And the version that is called from command line depends on the environment variables. Go and check your environment variables. check | |||||
feedback
|
|
As the others have suggested, it looks like you have the 1.6 Java runtime hanging around. Check your PATH and you should see the JRE location. Assuming you don't need it any more, go to Control Panel | Add or Remove Programs and delete the unwanted JRE (which will have the Java icon and J2?? Runtime Enviroinment in its name). | |||
|
feedback
|
|
Which Java is called when you do Other than trying to do a more clean "uninstall," what you can do is modify your | |||
|
feedback
|
c:\program files\Java? – Bozho Apr 6 '10 at 11:09