The first time I tried to use Java on Mountain Lion, it installed automatically. Unfortunately, it installed Java 6, so I installed Java 7. If I navigate to Java in System Preferences, only Java 7 is listed. How do I switch to Java 7, or remove Java 6?

I found that I had to open Java Preferences after doing this and drag java7 to the top of the the preferred order dialog which was presented, otherwise java6 was still used
–
ianbarkerSep 6 '12 at 8:24