Newest post on how to install Oracle JDK 8 / Java SE 8 on Mac OS X 10.10 Yosemite can be found here.
Java manual download page. Get the latest version of the Java Runtime Environment (JRE) for Windows, Mac, Solaris, and Linux. Oracle also provides the latest OpenJDK release under the open source GPL License at jdk.java.net. Oracle Java (Version 7 and later versions) requires an Intel-based Mac running Mac OS X 10.7.3 (Lion) or later. Version 7 Release 1 Contains a later version of the IBM virtual machine when compared to IBM SDK, Java Technology Edition, Version 7, while remaining compatible with Java SE 7 application programming interfaces (APIs).
At the time of this writing, there is no official release of Java SE 7 / Oracle JDK 1.7 on Mac OS X. It is still in developer preview based on Apple’s contributions to OpenJDK. The Developer Preview is provided to the community so that the developers can get feedback on the ongoing progress of the project. The developer preview should work on any Intel-based Mac and has been tested on Mac OS X 10.6.8 (Snow Leopard) and 10.7 (Lion).
UPDATE
Oracle has launched the official Java SE 7 for Mac OS X 64-bit platform. You can download it from here.
This tutorial shows you how to install Java SE 7 Developer Preview on Mac OS X 10.7.2 Lion running on my MacBook Pro.
1. Download the Oracle JDK7 Mac OS X port dmg file from here. At the time of this writing, the version of the JDK7 is Oracle JDK7 build b223 released on December 23, 2011. The dmg file name is jdk-7-ea-macosx-b223.dmg
2. Create a JavaVirtualMachines folder under /Library/Java if it doesn’t exist.
In my case, the JavaVirtualMachines is already there so I don’t need to create it manually.
3. Open the jdk-7-ea-macosx-b223.dmg file by double-clicking on it. Then drag the JDK 1.7.0 Developer Preview icon in the left side to the JavaVirtualMachines icon folder in the right side.
4. Go to /Library/Java/JavaVirtualMachines directory using Finder application. Then double-click the ‘JDK 1.7.0 Developer Preview’ icon. This will open the Java Preferences window. Here you can change the preferred order of the installed Java platforms by dragging it up or down. Make sure the Java SE 7 is in the preferred order or you can simply deselect the Java SE 6 version.
5. Now issue the ‘java -version’ command in the terminal window to verify.
6. Done
JDK 9 & Later
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux areavailable on release-specific pages of jdk.java.net as
.tar.gz
or.zip
archives.As an example, the archives for JDK 13 may be found on jdk.java.net/13 and may be extractedon the command line using
$ tar xvfopenjdk-13*_bin.tar.gz
or
$ unzipopenjdk-13*_bin.zip
depending on the archive type.
JDK 8
Debian, Ubuntu,etc.
On the command line, type:
$ sudo apt-get installopenjdk-8-jre
The
openjdk-8-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then please install the openjdk-8-jdk
package.Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.8.0-openjdk'
The
java-1.8.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.8.0-openjdk-devel
package.JDK 7
Debian, Ubuntu,etc.
On the command line, type:
![Jdk Jdk](https://automagiclab.com/swdruwoo/download-java-for-mac-quick-access-windows-7-trokfawt-bvntvhmk.jpg)
$ sudo apt-get installopenjdk-7-jre
The
openjdk-7-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then install the openjdk-7-jdk
package.Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.7.0-openjdk'
The
java-1.7.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.7.0-openjdk-devel
package.JDK 6
Java Jdk 7 Mac Download Version
Debian, Ubuntu,etc.
On the command line, type:
$ sudo apt-get installopenjdk-6-jre
The
openjdk-6-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then install the openjdk-6-jdk
package.Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.6.0-openjdk'
The
java-1.6.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.6.0-openjdk-devel
package.Java Jdk 7 Download 64 Bit
BSD Port
Download Java 8 For Mac
For a list of pointers to packages of the BSD Port forDragonFly BSD, FreeBSD, Mac OS X, NetBSD and OpenBSD, please seethe BSD porting Project's wikipage.