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.
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.
Liberica JDK provides Long term Support for all of its open source builds that act as alternatives for Java application development toolkits. The Liberica OpenJDK package with the HotSpot Virtual Machine viably replaces the Java 8 (LTS), 9, 10, 11 (LTS), 12, 13, 14, 15. Jdk free download - OpenJDK 7 for OS X Lion, and many more programs. Download the JDK.dmg file, jdk-10. Before the file can be downloaded, you must accept the license agreement. From either the browser Downloads window or from the file browser, double-click the.dmg file to start it. Global Nav Open Menu Global Nav Close Menu; Apple; Shopping Bag +.
- 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 usingdefaults 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 outman 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.
Jdk 1.6 Download 64 Bit
![Jdk 8 mac os download Jdk 8 mac os download](/uploads/1/2/6/5/126572010/234372247.png)
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
:Java Jdk Download Mac Os
![Jdk 8 mac os download Jdk 8 mac os download](/uploads/1/2/6/5/126572010/826133222.jpg)
Jdk 8 Download For Mac
Don’t forget to enable SIP again after creating these directories.