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.
MacOS – Can’t uninstall Java under El Capitan. Open Java.app application bundles with double click on a Mac without Apple’s Java 6; MacOS – Mac OS X Yosemite Java 1.6 Downgrade to 1.6u35; MacOS – If I install an older, deprecated Java runtime, will that mess up applications that use the current Java version. Solved: My Mac uses El Capitan operating system. When I try to open CS4 apps it says install Java Legacy SE6 Runtime File, and where do I find this? Java Download And Mac Os 10.11 El Capitan 11 El Capitan; Mac OS EL Capitan is one of the best-operating systems and twelfth major release of Apple. Although Apple has major new releases for macOS. However, in the case of Mac computers, Mac OS EL Capitan still has it all to be in the category of best Mac operating system.
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.
- Go to the Oracle Java downloads page and download the JDK installer. You should end up with a file named something similar to
jdk-8u60-macosx-x64.dmg
, but perhaps a newer version. - Open the
.dmg
Disk Image and run the installer. - Open
Terminal
- Edit the JDK’s newly installed
Info.plist
file to enable the included JRE to be used from the the command line, and from bundled applications:The third line fixes a permissions issue create by using
defaults write
. The fourth line is not required, but makes the file more user-friendly if you open it again in a text editor. - Create a link to add backwards compatibility for some applications made for older Java versions:
- Optional: If you’re actually using the JDK for software development, you may want to set the
JAVA_HOME
environment variable. The recommended way is to use/usr/libexec/java_home
program, so I recommend settingJAVA_HOME
in your.bash_profile
like Jared suggests:This will get the latest installed Java’s home directory by default, but check out
man java_home
for ways to easily get other Java home directories.
You should be done now, so try and open the application. If it does not work, some applications require legacy Java 6 to be installed. You can have it installed without actually using it, however, it’s possible to trick the applications into thinking legacy Java 6 is installed, without actually doing so.
If you’re running El Capitan, this is actually a little difficult now, because Apple added SIP (System Integrity Protection) to OS X. I have written a post explaining how to disable and enable SIP.
If you’ve disabled SIP, or are not running El Capitan yet, you can trick some applications into thinking legacy Java 6 is installed by creating two folders with the following commands in Terminal
:
Don’t forget to enable SIP again after creating these directories.
'Great tutorial. Thank you for concise directions to get me running with Java on my new iMac.'A.M., May 3, 2010
'Thank you so much for this tutorial! I am new to programming and have never written any code on my mac before now. This was very helpful!'M.A., August 29, 2010
'Great tutorial.'W.C., October 8, 2009
'Great tutorial! Many thanks, this is really helpful for a programming assignment in a computer network class I'm taking.'Z.L., October 6, 2009
'Great tut omg thanks so much!'S., October 4, 2009
'I love this tutorial! Thank you!'S.R., March 4, 2009
'Fantastic!!!!! Thank you very muchhhhh!! I can start mac programing now. The tutorial is great!!!'F., November 8, 2008
'Incredibly clear to follow, Thanks very much'J.G., October 1, 2008
'Très bon tutorial, merci beaucoup'K., November 7, 2007
'This is exactly the information I was looking for!! Great job explaining how to use the Jar Bundler. I always wondered how to group my files into a single 'app' file.'J.L.M., July 6, 2007
'Thanks for the tutorial.'D.W., June 6, 2007
'Great tutorial! Thank You very much!'T., May 19, 2007
Java Para Mac El Capitan
'This is a very good developement friendly site'A.K., March 18, 2007
'Thankyou, I am very happy to read your content for MacJava. Thankyou very much'A., January 12, 2007
'Very Good!!!!'D.A., August 10, 2006
'Great article - I found it very helpful! Thanks!'J.T., August 1, 2006
'Hello, Great information, thank you very much! Can I translate your article in french?'P.T., January 21, 2006
'Great article!'D., December 9, 2005
'Thank you so much. Your instructions are perfectly concise. There is plenty of information about programming, but not nearly enough about installing and packaging. This page is a blessing.'S.B., October 21, 2005
'This is a great info on mac application builder'S.S., October 11, 2005
'sweet article! one of the clearest and simplest ive seen and everything just works!!'J.B., September 9, 2005
'Amazing, I would never have thought it was that easy... You are truely the best!'M.F., September 7, 2005
'Couldn't be more clearer!'M.H., August 13, 2005
Java Download For Mac El Capitan
'THX a lot - very helpful and direct to the point'T.W., August 9, 2005
Download Java 8 For Mac El Capitan
'Cool -- you solved the mystery!'C.M., June 27, 2005