Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
If you are working on older versions of Mac OS X that is version prior to 10.7 Lion, Java should already be installed on your system. But you want to make sure it's installed and you should make sure you know which version is installed. The easiest way to find out which version of the Java you have is to go to the Applications folder, then to Utilities, and then to Java Preferences, an application that lets you see what you have on your system. In the General tab of the Java Preferences application I see that there is both a 64 and a 32-bit version of Java and they are both Java 6.
Notice that the internal Version is 1. 6 rather than just 6, but the marketing version is version 6. So I have Java Standard Edition version 6. The version at the top of the list is my default JDK. And when I build my code whether it's on the command line or in Eclipse or any other IDE, this is the version that I'll be using. Now if you don't have this version of Java you can go get the version you want. Go to a browser and try one of these links. If you are working on Snow Leopard or 10.6 go to this page support.apple.com/kb/DL1360.
There is a Download button there click the button and follow the instructions to download and install the most recent version of Java for this version of Mac. If your one version back from there on Leopard or 10.5 try this page support.apple.com/kb/DL924 again there is a Download link. You may notice that the maintenance version on this download is only version 15, that's fine. As long as you are using any version of Java 6, you'll be able to follow along with course.
Finally, if you want to be on the bleeding-edge you can try Java 7 on Mac. At the time of this recording the port of Java 7 to Mac was not complete but it was in Public Beta or Preview at Oracle. To try it out go to this page jdk7.java. net/macportpreview, you'll see that it's clearly identified as a preproduction developer preview release. That means you shouldn't use it for production application or depend on it for robust mission critical applications, but if you want to try it, just follow the instructions on this page for download and installation.
Either way, you should have either Java 6 or Java 7 installed before you continue with the rest of this course.
Get unlimited access to all courses for just $25/month.Become a member