The fourth line is not required, but makes the file more user-friendly if you open it again in a text editor. The third line fixes a permissions issue create by using defaults write. Sudo defaults write '`pwd`/Contents/ist' JavaVM -dict-add 'JVMCapabilities' 'JNIBundledAppCommandLine'
You should end up with a file named something similar to jdk-8u60-macosx-圆4.dmg, but perhaps a newer version. Go to the Oracle Java downloads page and download the JDK installer.The instructions for installing the JDK (Java Development Kit) are a subset of the instructions for installing just the JRE, because Oracle provides an installer for the JDK. My previous post about installing Java on OS X received quite a bit of traffic, and I felt that some of the information was outdated, and it became a little unclear after all the edits, so I’ve endeavoured to create a much easier to understand set of instructions.