This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have updated my java 1.6 with 1.7. But i can see old java 1.6 directories also with new java7 directories in java folder.So my question is that i want to use both version by only changing environment variable but it is not working please help.
You said "i want to use both version by only changing environment variable but it is not working"
What did you change - from what and to what? How did you change it? are you using and IDE or from the command line?
When you then try and use the other version, what did happen - did the JVM crash? Did it say "java not recognized"? Did you get a Blue Screen of Death?
Are you trying to run the same .class files on both versions? are you trying to develop one program on 1.6 and a different one on 1.7?
By "use both version", are you talking running programs or developing programs?