My system didn't come with Java so wasn't sure what to do so I went on youtube to find out. I came across this video article on youtube Minecraft | Java on Mac OS X Yosemite and Minecraft 1.8 and saw some wonderful comments but some great people and I installed java by clicking on this link below.
Linked Apple Java 6 File: http://support.apple.com/downloads/DL...
I didn't try installing other versions as from other peoples comments minecraft didn't work with other versions of java.
Linked Apple Java 6 File: http://support.apple.com/downloads/DL...
I didn't try installing other versions as from other peoples comments minecraft didn't work with other versions of java.