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.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database