Here’s how you can get Java 6 on the Mac of yours. Thus, no matter if the os has installed Java Runtime eight, it won’t run apps that rely on Java Runtime 6. Nevertheless, Java Runtime isn’t backward compatible. Mac OS X Yosemite (and the more recent versions) have a later version of Java Runtime (SE 8.0).
This problem happens because these apps (Adobe CS5, CS5, etc.) are depending on Java 6.
You can see the install legacy java se 6 runtime error while opening any Adobe CS6 or CS5 programs (Photoshop, Illustrator, InDesign, etc.).