I kept getting "Specified VM install not found: type MacOS X VM, name Java SE 6...".
And i did this accidentally and it worked: Properties-Java Compiler-Installed JREs-Search Button.
It did some soul searching,created yet another JRE entry and it all worked!