What I usually do is, in Eclipse preferences, I define an Installed JRE called "JDK X.Y.Z" and include tools.jar as part of it libraries. Then I change the project preferences to use that JRE "JDK X.Y.Z".
G. Schmidt, and I. Novakovic. Proceedings of the Poster and Demonstration Session at the 7th International Semantic Web Conference (ISWC 2008), Karlsruhe, Germany, (2008)
A. Mishra, J. Jose, and K. Sompura. International Journal on Recent and Innovation Trends in Computing and Communication, 3 (2):
799--802(February 2015)