This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Problem resolved. Had jre(not talking abt the jre folder in the jdk) & jdk installed for java 6.By default it picks up jre path & searches for tools.jar there.Once the jre was uninstalled,it searches for jdk & finds the tools.jar.