support JDK 1.6 and 1.7 on OSX

This patch supports JDK 1.6 and 1.7 (on OSX as well as other OS)

It checks that the tools.jar can be found in the default location.
If not the old OSX "Classes.jar" is used