Basically, Mac OS X starts without any Java, and if Java is required for any installed application or website, it allows you to install the Java JRE.
JRE is installed with a simple, non-programmer user. It is a runtime environment, has no development tools, and includes Java Webstart. It also has a control panel that allows the user to control things like security, updates, etc.
If you want to program Java on MacOS X, you install the JDK. The JDK is installed in a different way and, as a rule, does not have a user level connection to the JRE. That is, it does not affect the control panel, which is designed to control the JRE at the user level.
Tools designed to work with the JDK point to the JDK JRE, and those that are designed to work with the JRE at the user level indicate this.
I canβt say for sure why they decided to completely diverge between the Java user and the Java developer. But I can assume that the Mac can be used by several users. Suppose one of these users is a developer and makes changes to the Java installation, such as revoking and adding security keys to the keystore, changing security policy files, etc. I believe that Oracle does not want these changes in Java development to affect all other Mac users who are unaware of the development environment and cannot make changes to it.
You upgrade the JDK by downloading the full version from the Oracle website. Keep in mind that each new JDK is installed in addition to the old JDK, but is installed as a new one by default. If you want to remove the old JDK, you must do it manually by following the instructions on the Oracle website.
source share