There were a lot of posts on the internet on how you can use the Java Preferences app to 1.6, but unfortunately it did not work out for me. I had to do it the hard way of pointing the CurrentJDK symlink in /System/Library/Frameworks/JavaVM.framework/Versions to 1.6.