From Java Download page at java.com it says: Apple supplies their own version of Java. Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac. Download Minecraft 1.12.2 Java Edition For Mac & Win 7, 10 3 (60%) 6 votes We offer you the opportunity to download minecraft 1.12.2, 1.12.1 and 1.12 for free, as well as find out what’s new in Minecraft version 1.12 on MacOS & Windows.
I want to install a specific JDK (the latest for example). For this, I went to the JDK download homepage: http://java.sun.com/javase/downloads/index.jsp.I looked for a Mac version, but I'm a bit surprised to only see downloadable versions for Linux, Windows and Solaris...
Here's the message for Mac:
'Apple Computer supplies their own version of Java. Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.'
OK BUT... when I update Java with Mac I have a JRE and not a JDK...
I don't understand why a JDK version doesn't exist that is easily downloadable/installable (like a jar to unzip?) for Mac...Peter Mortensen
In a comment under @Thilo's answer, @mobibob asked how to set JAVA_HOME in your .bash_profile on a Mac. Answer:
This will dynamically assign to JAVA_HOME the location of the first JDK listed in the 'General' tab of 'Java Preferences' utility.
See Apple Technical Q&A 1170: https://developer.apple.com/library/content/qa/qa1170/_index.html
If you prefer parentheses to backticks for command substitution, this also works:Cœur
As the message says, you have to go to Apple, not Sun, for Java on the Mac. As far as I know, Apple JDK 6 is installed by default on Mac OS X 10.6 (Snow Leopard). Maybe you need to install the developer tools from your Mac OS X installation DVD (the dev tools are an optional install from the OS DVD).
NOTE This answer from 16 Oct 2009 is now outdated; you can get the JDK for Mac OS X from the regular JDK download page on Oracle's website now.JesperJesper
For people using any LION OS X 10.7.X
They uploaded Java SE 6 version 1.6.0_26 available hereRoy CalderonRoy Calderon
I bought a MacBook Pro yesterday (Mac OS X v10.8 (Mountain Lion)) and there is no JDK installed by default...
As well as javac, I also found it didn't have packages such as SVN installed. It turns out you can get everything from the Apple developer page (you will need to register with your AppleID). SVN is part of the 'Command Line Tools' package.
This is what happens on a fresh MacBook:
Hopefully this will help out other newbies like me ;)Peter Mortensen
Mac comes with the JDK, for more information check:pedromarcepedromarce
The explanation is that JDK is a bit specific and does not contain the library tools.jar. For my development, I need this library and Mac's JDK doesn't provide it:
tools.jar does not exist. Classes usually located here are instead included in classes.jar. Scripts that rely on the existence of tools.jar need to be rewritten accordingly.
Java Jdk 1.6 Download For Mac Os XPeter Mortensen
The easiest way is to use Homebrew. Install Homebrew and then:
You can list all available versions using the following command:
brew cask search java
Compiling with -source 1.5 -target 1.5 (in a JDK 6 environment) will honor only language elements that were in 1.5 and prior. Great. But there were no language changes in 6 anyway. Problem with this approach (on Mac with 1.6) is that using classes that came AFTER 1.5 will still compile because they exist in the rt.jar. So one could run in a 1.5 env and get a class not found exception with no prior warning when compiling. I found this out the hard way with javax.swing.event.RowSorterEvent/Listener. Both entered 'Since 1.6' but are not caught with -source 1.5
If you installed brew, cmd below will be helpful:
brew cask install java
As of Mac OS X v10.6 (Snow Leopard), you can run Java 6 in 32-bit mode on either 32-bit or 64-bit Intel processor equipped Macs.
If you cannot upgrade to Snow Leopard, Soy Latte is a pre-compiled version of Java 6 for Intel 32-bit.Peter Mortensen
There are various tricky issues with having multiple versions of Java (Apple's own Java 6 and Oracle JDK 7 or even 8) on one's Mac OS X system, and using different versions for different applications. I spent some time writing up my experience of my experience of installing and configuring various versions of JDK on Mac OS X 10.9.2.Meng LuMeng Lu
Java Download For Mac Yosemite
I think this other Stack Overflow question could help:
It basically says that if you need to compile or execute a Java application with an older version of the JDK (for example 1.4 or 1.5), you can do it using the 1.6 because it is backwards compatible. To do it so you will need to add the parameter
-source 1.5 and/or
-target 1.5 in the javac options or in your IDE.
JDK is the Java Development Kit (used to develop Java software).
JRE is the Java Runtime Environment (used to run any .jar file 'Java software').
The JDK contains a JRE inside it.
On Windows when you update Java, it updates the JRE automatically.
On Mac you do not have a JRE separated you have it, but inside the JDK, so when you update Java it will update your JRE which is inside your JDK;it doesn't install an JDK for you. You need to get it from somewhere else.Peter Mortensen
Check this awesome tool sdkman to manage your jdk and other jdk related tools with great ease!
e.g.Rishikesh DarandaleRishikesh Darandale
Since most answers are out of date, here's what works as of end of 2018 under the assumption that
- You want to install the GPL version of OpenJDK.
- You do not want to install Homebrew
In that case, grab the desired version from the Oracle GPLv2 OpenJDK site, or from AdoptOpenJDK (not tested by myself yet). In the below I am assuming version 11.0.1 for Mac. Then do in your favorite shell:
 Note that the Oracle branded JDK has significant licensing restrictions allowing you its use basically only for testing, i.e., not for production. If you do not have a support agreement with Oracle, then it seems risky to me to use their JDK, especially since the differences to OpenJDK are minimal.
As a rule you cannot install other versions of Java on a Mac than those provided by Apple through Software Update. If you need Java 6 you must have a 64-bit Intel computer. You should always have Java 5 and 1.4 and perhaps 1.3 installed if you have at least OS X 10.4.
If you have VERY much elbow grease and is willing to work with beta software you can install the OpenJDK under OS X, but I don't think you want to go there.Thorbjørn Ravn AndersenThorbjørn Ravn Andersen
Not the answer you're looking for? Browse other questions tagged javamacosinstall or ask your own question.
Windows 2000 / XP / Vista / Windows 7
Author / Product:
Oracle / Java Runtime Environment (32-bit)
1.6 Java Download For Mac Free
It provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. In addition, two key deployment technologies are part of the JRE: Java Plug-in, which Enables Applets to Run in Popular Browsers; and Web Start, which deploys standalone applications over a network. Many cross platform applications also require Java to operate properly.
Itis a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. The program is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere! Itis at the heart of the digital lifestyle. It's the platform for launching careers, exploring human-to-digital interfaces, architecting the world's best applications, and unlocking innovation everywhere—from garages to global organizations.
Why should I upgrade to the latest version?
The latest version contains important enhancements to improve performance, stability and security of the applications that run on your machine. Installing this free update will ensure that your applications continue to run safely and efficiently.
What will I get when I download software?
The Java Runtime Environment (JRE) is what you get when you download software. The JRE consists of the Java Virtual Machine (JVM), Java platform core classes, and supporting Java platform libraries. The JRE is the runtime portion of the software, which is all you need to run it in your Web browser.
What is Java Plug-in software?
The program is a component of the (JRE). The JRE allows applets written in the programming language to run inside various web browsers. The Plug-in software is not a standalone program and cannot be installed separately.
I have heard the terms Virtual Machine and JVM. Is this software?
The Virtual Machine is only one aspect of software that is involved in web interaction. The Virtual Machine is built right into your software download and helps run Java apps.
Note: When your installation completes, you may need to restart your browser (close all browser windows and re-open) to enable the installation.
Also Available: Download Java Runtime Environment for Mac